mvvm_flutter 0.3.2
mvvm_flutter: ^0.3.2 copied to clipboard
The goal behind is to move as much of the state and logic from the View into a separate entity called the BaseViewModel.
import 'package:flutter/material.dart';
import 'package:mvvm_flutter_example/ui/screen/color_changer_view.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: ColorChangerView(),
);
}
}
copied to clipboard