pmvvm 0.2.2 copy "pmvvm: ^0.2.2" to clipboard
pmvvm: ^0.2.2 copied to clipboard

outdated

A clean & simple MVVM solution for state management using Provider package.

example/lib/main.dart

import 'package:example/core/packages.dart';
import 'package:flutter/material.dart';

import 'app/app.view.dart';
import 'core/services/firebase.service.dart';

void main() => runApp(const Root());

class Root extends StatelessWidget {
  const Root({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        StreamProvider<FirebaseUser>.value(value: AuthService.user),
        StreamProvider<AuthStatus>.value(
          value: AuthService.authStatus,
          initialData: AuthStatus.NOT_DONE,
        ),
      ],
      child: MyApp(),
    );
  }
}
72
likes
0
pub points
83%
popularity

Publisher

unverified uploader

A clean & simple MVVM solution for state management using Provider package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_hooks, provider

More

Packages that depend on pmvvm