flux_flutter 2.0.0 copy "flux_flutter: ^2.0.0" to clipboard
flux_flutter: ^2.0.0 copied to clipboard

Flutter bindings for the Flux scripting language.

Flux Flutter #

Flutter bindings for the Flux scripting language, enabling server-driven UI and hot-reload capabilities.

Features #

  • FluxUI Component Library: Complete set of UI components (Button, Card, Input, Badge, Row, Column, Grid, Stack)
  • BLE Integration: Bluetooth Low Energy support via flutter_blue_plus
  • Camera Integration: Real camera functionality via camera package
  • Hot Reload: Live update scripts without app restart
  • Riverpod Integration: Seamless state management with Riverpod 3.x

Getting Started #

Add to your pubspec.yaml:

dependencies:
  flux_flutter: ^2.0.0
  flutter_riverpod: ^3.0.0

Usage #

import 'package:flux_flutter/flux_flutter.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ProviderScope(
      child: MaterialApp(
        home: FluxWidget(
          source: '''
            widget Counter {
              state count = 0;
              build {
                Column(children: [
                  Text(count),
                  Button(text: "Increment", onPressed: fn() { count = count + 1; })
                ])
              }
            }
          ''',
          widgetName: 'Counter',
        ),
      ),
    );
  }
}

Additional Information #

0
likes
110
points
189
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter bindings for the Flux scripting language.

Documentation

API reference

License

MIT (license)

Dependencies

camera, crypto, device_info_plus, flutter, flutter_blue_plus, flutter_riverpod, flux_compiler, flux_vm, http, package_info_plus, permission_handler, shared_preferences, web_socket_channel

More

Packages that depend on flux_flutter