Created
June 2, 2020 14:34
-
-
Save techpotatoes/0184e26648049231ae6b8bccde6d6324 to your computer and use it in GitHub Desktop.
Flutter development series – Part 5
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
class LoyaltyAddPage extends StatelessWidget { | |
const LoyaltyAddPage({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return WillPopScope( | |
onWillPop: () { | |
BlocProvider.of<NavigatorBloc>(context).add(NavigatorEventPop()); | |
return Future(() => true); | |
}, | |
child: Scaffold( | |
backgroundColor: Color(0xFFF6F6F6), | |
appBar: AppBar( | |
title: Text("Loyalty"), | |
), | |
body: Container( | |
child: Center( | |
child: Text("Adding"), | |
), | |
), | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment