upper_flutter_stores 0.1.15 copy "upper_flutter_stores: ^0.1.15" to clipboard
upper_flutter_stores: ^0.1.15 copied to clipboard

A lightweight, super-friendly, and non-verbose state management solution for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_stores_example/screens/main_screen.dart';
import 'package:flutter_stores_example/store/todo_store.dart';
import 'package:upper_flutter_stores/upper_flutter_stores.dart';

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

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

  @override
  Widget build(BuildContext context) {
    final todoStore = TodoStore();

    return StoreProvider<TodoStore>(
        store: todoStore,
        child: StoreLifecycleManager(
          child: MaterialApp(
            title: 'Flutter Stores TODO Example',
            theme: ThemeData(primarySwatch: Colors.blue),
            home: MainScreen(),
          ),
        ));
  }
}
copied to clipboard
4
likes
160
points
62
downloads

Publisher

verified publisherupper.do

Weekly Downloads

2024.09.18 - 2025.04.02

A lightweight, super-friendly, and non-verbose state management solution for Flutter.

Repository (GitHub)
View/report issues
Contributing

Topics

#state-management #flutter #dart

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on upper_flutter_stores