Created
May 7, 2021 15:30
-
-
Save arulwastaken/d307040ba7cf36dc2ae5a917e9782c82 to your computer and use it in GitHub Desktop.
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 MvvmView extends StatefulWidget { | |
@override | |
_MvvmViewState createState() => _MvvmViewState(); | |
} | |
class _MvvmViewState extends State<MvvmView> { | |
@override | |
Widget build(BuildContext context) { | |
MvvmViewModel viewModel = Provider.of<MvvmViewModel>(context); | |
return Container( | |
child: Text( | |
viewModel.welcomeText | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment