Skip to main content

w_tools_ui 1.1.0 copy "w_tools_ui: ^1.1.0" to clipboard
w_tools_ui: ^1.1.0 copied to clipboard

w_tools 的 UI 组件层:提供文本、图片、按钮、布局、导航与常用扩展,支持响应式尺寸、图片缓存与重试,帮助快速构建一致的界面。

w_tools_ui #

pub package License: MIT

w_tools_ui 是 w_tools 的 UI 组件层,提供通用组件、布局、导航、扩展与屏幕适配工具。

特性 #

  • 通用组件:WText / WImage / WButton / WBadge 等
  • 布局组件:WScaffold / WAppBar / WContainer / WListView / WStep
  • 导航组件:WNavBar / WNavController / WTabBar
  • 扩展方法:颜色、字符串、数字、Row / Column、TextStyle、Widget 等
  • 屏幕适配:WScreen、间距与尺寸工具

安装 #

dependencies:
  w_tools_ui: ^1.0.0

本包最低要求 Flutter 3.27.0。

快速开始 #

import 'package:w_tools_ui/w_tools_ui.dart';

class DemoPage extends StatelessWidget {
  const DemoPage({super.key});

  @override
  Widget build(BuildContext context) {
    return WScaffold(
      body: Column(
        children: const [
          WAppBar(title: 'Demo'),
          Expanded(child: WText(text: 'Hello w_tools_ui')),
        ],
      ),
    );
  }
}

主要 API #

能力 入口
文本 / 图片 WText / WImage
按钮 / 徽标 WButton / WBadge / WRowButtons
布局 WScaffold / WAppBar / WContainer / WListView
导航 WNavBar / WNavController / WTabBar
屏幕工具 WScreen / WSizeBox / WPadding
扩展 ColorExtension / StringExtension / NumExtension / WidgetExtension 等

License #

MIT

0
likes
105
points
143
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

w_tools 的 UI 组件层:提供文本、图片、按钮、布局、导航与常用扩展,支持响应式尺寸、图片缓存与重试,帮助快速构建一致的界面。

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #ui #widget #components

License

MIT (license)

Dependencies

badges, cached_network_image, flutter

More

Packages that depend on w_tools_ui