clover 4.0.0 clover: ^4.0.0 copied to clipboard
Clover is an open source framework for building MVVM applications with Flutter.
import 'package:clover/clover.dart';
import 'package:flutter/material.dart';
import 'view_models.dart';
import 'views.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Clover',
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
home: ViewModelBinding(
viewBuilder: () => const HomeView(),
viewModelBuilder: () => HomeViewModel(),
),
);
}
}