hew 0.1.0 copy "hew: ^0.1.0" to clipboard
hew: ^0.1.0 copied to clipboard

Simple state management library for Dart and Flutter, inspired by Bloc and Riverpod.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hew_example/counter_builder.dart';
import 'package:hew_example/counter_stateful.dart';
import 'package:hew_example/counter_stateless.dart';
import 'package:hew_example/counters_with_observer.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: const [
            CounterStateful(),
            CounterStateless(),
            CounterBuilder(),
            CountersWithObserver(),
          ],
        ),
      ),
    );
  }
}
2
likes
140
pub points
0%
popularity

Publisher

verified publisherfestelo.tk

Simple state management library for Dart and Flutter, inspired by Bloc and Riverpod.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, meta, rxdart

More

Packages that depend on hew