mvvm_flutter 0.3.2 copy "mvvm_flutter: ^0.3.2" to clipboard
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.

example/lib/main.dart

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(),
    );
  }
}
4
likes
40
pub points
0%
popularity

Publisher

unverified uploader

The goal behind is to move as much of the state and logic from the View into a separate entity called the BaseViewModel.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, meta, provider

More

Packages that depend on mvvm_flutter