go_mvp 1.1.0
go_mvp: ^1.1.0 copied to clipboard
Package designed to streamline the preparation of each screen in a project using the MVP.
import 'package:example/data/model/generated/model.g.dart';
import 'package:flutter/material.dart';
import 'package:go_mvp/go_mvp.dart';
import 'routes.dart';
void main() {
AppManager().configure(
router: router,
object: Model(),
debug: false,
lowPerformance: false,
refreshLatency: 500,
slashResolution: '',
additionalClasses: [],
screenVisible: (String screen) async {
// do something with the visible screen information
},
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => const AppWidget(
title: "Example App",
);
}