-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve UI and Added feature to see Image when clicked
- Loading branch information
Showing
10 changed files
with
115 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class ShowImage extends StatelessWidget { | ||
String url; | ||
ShowImage(this.url); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
backgroundColor: Colors.black, | ||
body: (url != "null") | ||
?Center(child: Image.network(url)) | ||
:Center(child: Text("Image Unavailable !",style: TextStyle(color: Colors.white),)), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class SizeTransition3 extends PageRouteBuilder { | ||
final Widget page; | ||
|
||
SizeTransition3(this.page) | ||
: super( | ||
pageBuilder: (context, animation, anotherAnimation) => page, | ||
transitionDuration: Duration(milliseconds: 1000), | ||
reverseTransitionDuration: Duration(milliseconds: 200), | ||
transitionsBuilder: (context, animation, anotherAnimation, child) { | ||
animation = CurvedAnimation( | ||
curve: Curves.fastLinearToSlowEaseIn, | ||
parent: animation, | ||
reverseCurve: Curves.fastOutSlowIn); | ||
return Align( | ||
alignment: Alignment.center, | ||
child: SizeTransition( | ||
axis: Axis.horizontal, | ||
sizeFactor: animation, | ||
child: page, | ||
axisAlignment: 0, | ||
), | ||
); | ||
}, | ||
); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters