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

Production-ready Flutter plugin for creating and managing home-screen widgets, Live Activities, Wear OS Tiles, and watchOS Complications through a single Dart API. Federated architecture with first-cl [...]

flow_widget #

Cross-platform Flutter plugin for home-screen widgets, Live Activities, and shared widget storage.

pub package

Installation #

dependencies:
  flow_widget: ^1.0.0

Optional companion packages (add manually when needed):

dependencies:
  flow_widget_wear: ^1.0.0      # Wear OS Tiles module
  flow_widget_watchos: ^1.0.0  # watchOS Complications bridge

Quick start #

import 'package:flow_widget/flow_widget.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await FlowWidget.initialize(
    options: const FlowWidgetOptions(
      appGroupId: 'group.com.example.app',
    ),
  );

  await FlowWidget.saveData(key: 'username', value: 'Amir');
  await FlowWidget.update(name: 'ProfileWidget');

  FlowWidget.onClicked.listen((event) {
    debugPrint('Clicked ${event.widgetId} action=${event.action}');
  });

  runApp(const MyApp());
}

Typed models #

Use @FlowWidgetModel with flow_widget_generator for strongly typed save/load:

@FlowWidgetModel(prefix: 'user_')
class UserWidgetData {
  const UserWidgetData({required this.name, required this.score});
  final String name;
  final int score;
}

// After build_runner:
await FlowWidget.saveBatch(entries: user.toFlowEntries());
await FlowWidget.update(name: 'ProfileWidget');

Documentation #

Full guides live in the repository docs:

License #

MIT — see LICENSE.

2
likes
140
points
55
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Production-ready Flutter plugin for creating and managing home-screen widgets, Live Activities, Wear OS Tiles, and watchOS Complications through a single Dart API. Federated architecture with first-class Android, iOS, macOS, Windows, and Linux support.

Repository (GitHub)
View/report issues

Topics

#widget #home-widget #widgetkit #glance #live-activities

License

MIT (license)

Dependencies

flow_widget_android, flow_widget_annotation, flow_widget_ios, flow_widget_linux, flow_widget_macos, flow_widget_platform_interface, flow_widget_windows, flutter

More

Packages that depend on flow_widget

Packages that implement flow_widget