jetx 0.1.0-alpha.3 copy "jetx: ^0.1.0-alpha.3" to clipboard
jetx: ^0.1.0-alpha.3 copied to clipboard

A modern Flutter framework for state management, dependency injection, and route management. An actively maintained fork of GetX.

example/lib/main.dart

import 'package:example/reactive_example.dart';
import 'package:flutter/material.dart';
import 'package:jetx/jetx.dart';
import 'app_router.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return JetMaterialApp(
      title: 'JetX Router Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        useMaterial3: true,
      ),
      initialRoute: '/home',
      getPages: [
        ...AppRouter.pages, // Manually registered routes
        // Additional manual routes (still supported)
        JetPage(
          name: '/reactive',
          page: () => const ReactiveExampleView(),
          binding: BindingsBuilder(() {
            Jet.put(CartController());
          }),
        ),
      ],
    );
  }
}
12
likes
0
points
54
downloads

Publisher

verified publishershrimps.ly

Weekly Downloads

A modern Flutter framework for state management, dependency injection, and route management. An actively maintained fork of GetX.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

dio, flutter, jetx_annotations, pretty_dio_logger

More

Packages that depend on jetx