mvvm_plus 0.1.5 copy "mvvm_plus: ^0.1.5" to clipboard
mvvm_plus: ^0.1.5 copied to clipboard

outdated

MVVM+ is a Flutter state management library that implements MVVM, plus adds support for sharing business logic across widgets.

example/lib/main.dart

import 'package:example/counter_page/counter_page.dart';
import 'package:example/services/color_notifier.dart';
import 'package:flutter/material.dart';
import 'package:registrar/registrar.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  final appTitle = 'example';

  @override
  Widget build(BuildContext context) {
    return Registrar<ColorNotifier>(
      builder: () => ColorNotifier(),
      child: MaterialApp(
        title: appTitle,
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: CounterPage(title: appTitle),
      ),
    );
  }
}
40
likes
0
pub points
66%
popularity

Publisher

verified publisherrichardcoutts.com

MVVM+ is a Flutter state management library that implements MVVM, plus adds support for sharing business logic across widgets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, equatable, flutter, registrar

More

Packages that depend on mvvm_plus