go_mvp 1.1.0 copy "go_mvp: ^1.1.0" to clipboard
go_mvp: ^1.1.0 copied to clipboard

Package designed to streamline the preparation of each screen in a project using the MVP.

example/lib/main.dart

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",
      );
}
0
likes
150
pub points
36%
popularity

Publisher

verified publisherlandamessenger.com

Package designed to streamline the preparation of each screen in a project using the MVP.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, go_router, object, visibility_detector, yaml

More

Packages that depend on go_mvp