slim 1.0.5 copy "slim: ^1.0.5" to clipboard
slim: ^1.0.5 copied to clipboard

outdated

Super Light State Management out of the box. Easy way to work with ChangeNotifier or any other model class.

slim #

Super light statemanagment implemented pure out of the box.

Usage #

Single Slim #


  class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Slim<Counter>(
      stateObject: Counter(),
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        home: MyHomePage(title: 'Flutter Demo Home Page'),
      ),
    );
  }
}

Multi Slim - Slimer #


  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
        return MultiSlim(
        slimers: [Slimer<Counter>(Counter())],
        child: MaterialApp(
            title: 'Flutter Demo',
            theme: ThemeData(
            primarySwatch: Colors.blue,
            visualDensity: VisualDensity.adaptivePlatformDensity,
            ),
            home: MyHomePage(title: 'Flutter Demo Home Page'),
        ),
        );
    }
    }

Resolve Object #


    Slim.of<Counter>(context);

18
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Super Light State Management out of the box. Easy way to work with ChangeNotifier or any other model class.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on slim