Skip to main content

rxflare 1.7.2 copy "rxflare: ^1.7.2" to clipboard
rxflare: ^1.7.2 copied to clipboard

A high-performance reactive state management library for Flutter featuring automatic dependency tracking and granular field-level updates.

example/lib/main.dart

import 'package:material_ui/material_ui.dart';
import 'package:layerx/layerx.dart';
import 'package:rxflare/rxflare.dart';

import 'app_routes.dart';
import 'translations.dart';

// final isDarkMode = false.obs;

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  RxLocale.init(translations: translations);
  // RxDebug.isEnabled = true;
  runApp(const RxFlareDemoApp());
}

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

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      top: true,
      bottom: false,
      child: RxBuilder(
        builder: (context) => RxMaterialApp(
          title: 'demo',
          routes: AppRoutes.routes,
          // you can safely omit initialRoute — it will automatically use "/".
          // initialRoute: "/home",
          //use LayerX dialog
          builder: LayerX.init(
            builder: (context, child) {
              return MediaQuery(
                data: MediaQuery.of(context).copyWith(
                  textScaler: MediaQuery.of(
                    context,
                  ).textScaler.clamp(minScaleFactor: 0.8, maxScaleFactor: 1.6),
                ),
                child: child!,
              );
            },
          ),
        ),
      ),
    );
  }
}
3
likes
65
points
419
downloads

Documentation

API reference

Publisher

verified publisherxbzx.online

Weekly Downloads

A high-performance reactive state management library for Flutter featuring automatic dependency tracking and granular field-level updates.

Repository (GitHub)
View/report issues

Topics

#state-management #reactive #flutter #widget #mvvm

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rxflare