mvi 1.0.6
mvi: ^1.0.6 copied to clipboard
A Flutter package that applies the MVI architectural pattern to help manage app state and logic in a structured and maintainable way.
import 'package:flutter/material.dart';
import 'package:example/login/login_page.dart';
import 'package:example/login/view_model/login_view_model.dart';
import 'package:mvi/mvi.dart';
void main() {
SignalsObserver.instance = null;
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: LoginPage(viewModel: () => LoginViewModel()),
);
}
}