fl_mvvm 1.0.0 fl_mvvm: ^1.0.0 copied to clipboard
Easy MVVM pattern with Flutter.
import 'package:example/views/example_view.dart';
import 'package:fl_mvvm/fl_mvvm.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const ProviderScope(child: MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Fl MVVM Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const ExampleView(numberOfItems: 100,),
);
}
}