pulse_x 1.0.4 copy "pulse_x: ^1.0.4" to clipboard
pulse_x: ^1.0.4 copied to clipboard

Pulse X is the mini state management. It has four features - state management, context-less routing, dependency injection & reaction (side effects)

example/lib/main.dart

import 'package:example/views/quotes_view.dart';
import 'package:flutter/material.dart';
import 'package:pulse_x/pulse_x.dart';

import 'dependency_injection.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  /// Inject all view models in advance
  DI.setUp();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Pulse State Management Demo',
      /// register global navigator key here
      navigatorKey: PulseXNavigator.navigatorKey,
      theme: ThemeData(
        primarySwatch: Colors.amber,
        scaffoldBackgroundColor: Colors.amber.shade50,
        useMaterial3: true,
        appBarTheme: AppBarTheme(
          centerTitle: true,
          backgroundColor: Colors.amber.shade50,
          elevation: 0.0,
        ),
      ),
      debugShowCheckedModeBanner: false,
      home: QuotesView(),
    );
  }
}
4
likes
150
points
29
downloads

Publisher

verified publisheryl0.me

Weekly Downloads

Pulse X is the mini state management. It has four features - state management, context-less routing, dependency injection & reaction (side effects)

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, synchronized

More

Packages that depend on pulse_x