deex 0.0.1+1 copy "deex: ^0.0.1+1" to clipboard
deex: ^0.0.1+1 copied to clipboard

unlisted

A state management library for Flutter, inspired by GetX, focusing exclusively on state management.

example/lib/main.dart

import 'package:deex/state_manager/rx_flutter/rx_widget.dart';
import 'package:example/controller.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  final controller = Controller();

  MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Deex(() => Text(controller.title)),
        actions: [
          ElevatedButton(
            onPressed: controller.changeTitle,
            child: const Text("Change title"),
          ),
        ],
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Deex(
              () => Text(
                '${controller.count.value}',
                style: Theme.of(context).textTheme.headlineMedium,
              ),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: controller.increment,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}
4
likes
0
points
11
downloads

Publisher

verified publisherbetacoding.com.br

Weekly Downloads

A state management library for Flutter, inspired by GetX, focusing exclusively on state management.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, web

More

Packages that depend on deex