Skip to content

Instantly share code, notes, and snippets.

@techpotatoes
Created June 2, 2020 14:34
Show Gist options
  • Save techpotatoes/0184e26648049231ae6b8bccde6d6324 to your computer and use it in GitHub Desktop.
Save techpotatoes/0184e26648049231ae6b8bccde6d6324 to your computer and use it in GitHub Desktop.
Flutter development series – Part 5
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