Skip to content

Instantly share code, notes, and snippets.

@codingwitharul
Created May 7, 2021 15:30
Show Gist options
  • Select an option

  • Save codingwitharul/d307040ba7cf36dc2ae5a917e9782c82 to your computer and use it in GitHub Desktop.

Select an option

Save codingwitharul/d307040ba7cf36dc2ae5a917e9782c82 to your computer and use it in GitHub Desktop.
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