flutter_obs 1.6.2 copy "flutter_obs: ^1.6.2" to clipboard
flutter_obs: ^1.6.2 copied to clipboard

a easy flutter state management, the source code is less than 100, but you can use it to implement global and local states

example/lib/main.dart

import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(home: HomePage());
  }
}

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  int count = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Example'),
      ),
      body: ListView(
        children: const [],
      ),
    );
  }
}
0
likes
150
points
95
downloads

Publisher

unverified uploader

Weekly Downloads

a easy flutter state management, the source code is less than 100, but you can use it to implement global and local states

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_obs