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

ducafe_ui_core 是一个 Flutter UI 核心库,旨在简化 Flutter 应用程序的 UI 开发。它提供了一系列实用的扩展方法和工具类,包括屏幕适配、Widget 扩展、上下文扩展、字符串扩展等,帮助开发者快速构建美观且响应式的用户界面。

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
140
points
752
downloads

Publisher

unverified uploader

Weekly Downloads

ducafe_ui_core 是一个 Flutter UI 核心库,旨在简化 Flutter 应用程序的 UI 开发。它提供了一系列实用的扩展方法和工具类,包括屏幕适配、Widget 扩展、上下文扩展、字符串扩展等,帮助开发者快速构建美观且响应式的用户界面。

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on ducafe_ui_core