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

outdated

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

example/lib/main.dart

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

import 'package:example/models/models.module.dart';
import 'core/services/firebase.service.dart';

import 'app/app.view.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<Profile>.value(value: authService.profile, initialData: null),
      ],
      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