Last active
October 23, 2021 08:49
-
-
Save jeckymodi/47e82ed00e9fe2b33a669610add22481 to your computer and use it in GitHub Desktop.
Provider with PageController
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
@override | |
Widget build(BuildContext context) { | |
return Consumer<PageNotifier>( | |
builder: (context, provider, snapshot) { | |
return Scaffold( | |
appBar: AppBar( | |
backgroundColor: Colors.white, | |
title: Text( | |
"Demo App", | |
style: TextStyle(color: Colors.black), | |
), | |
), | |
backgroundColor: Colors.white, | |
body: Column( | |
children: [ | |
getSegmentButtons(), | |
SizedBox(height: 20), | |
getPageView(), | |
], | |
), | |
); | |
}, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment