decentrotech_fabric 0.1.2 copy "decentrotech_fabric: ^0.1.2" to clipboard
decentrotech_fabric: ^0.1.2 copied to clipboard

Decentro Fabric SDK for Flutter, enabling easy integration of Decentro UIStreams.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'src/app.dart';
import 'src/settings/settings_controller.dart';
import 'src/settings/settings_service.dart';

void main() async {
  // Set up the SettingsController, which will glue user settings to multiple
  // Flutter Widgets.
  final settingsController = SettingsController(SettingsService());

  // Load the user's preferred theme while the splash screen is displayed.
  // This prevents a sudden theme change when the app is first displayed.
  await settingsController.loadSettings();

  // Run the app and pass in the SettingsController. The app listens to the
  // SettingsController for changes, then passes it further down to the
  // SettingsView.
  runApp(MyApp(settingsController: settingsController));
}
1
likes
150
points
29
downloads

Publisher

verified publisherdecentro.tech

Weekly Downloads

Decentro Fabric SDK for Flutter, enabling easy integration of Decentro UIStreams.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_inappwebview, url_launcher

More

Packages that depend on decentrotech_fabric