ducafe_ui_core 1.0.6 copy "ducafe_ui_core: ^1.0.6" to clipboard
ducafe_ui_core: ^1.0.6 copied to clipboard

ducafe_ui_core is a Flutter UI core library designed to simplify UI development in Flutter applications. It provides a series of practical extension methods and utility classes, including screen adapt [...]

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));
}
26
likes
135
points
749
downloads

Publisher

unverified uploader

Weekly Downloads

ducafe_ui_core is a Flutter UI core library designed to simplify UI development in Flutter applications. It provides a series of practical extension methods and utility classes, including screen adaptation, Widget extensions, context extensions, string extensions, etc., helping developers quickly build beautiful and responsive user interfaces.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on ducafe_ui_core