This file contains hidden or 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
MaterialButton( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(40), | |
), | |
color: Colors.white, | |
child: Text('Simple Pop Up'), | |
onPressed: () async { | |
await animated_dialog_box.showCustomAlertBox( | |
// You can change the animation which u=you want to use like |
This file contains hidden or 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
static Widget buildSignupSigninBtn(var quetion, var pageName, Function function) { | |
return Padding(padding: EdgeInsets.only(bottom: 0,top: 5),child: GestureDetector( | |
onTap: () { | |
function(); | |
}, | |
child: RichText( | |
text: TextSpan( | |
children: [ | |
TextSpan( | |
text: quetion, |
This file contains hidden or 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
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return StreamBuilder( | |
stream: Connectivity().onConnectivityChanged, | |
builder: (context, AsyncSnapshot<ConnectivityResult> snapshot) { | |
return snapshot.data == ConnectivityResult.mobile || |
OlderNewer