allan-hx / flutter-weui Goto Github PK
View Code? Open in Web Editor NEW使用flutter实现的weui框架 文档地址: https://allan-hx.github.io/flutter-weui-doc/index.html
使用flutter实现的weui框架 文档地址: https://allan-hx.github.io/flutter-weui-doc/index.html
./../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/weui-0.0.8/lib/theme/index.dart:86:20: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
return context.inheritFromWidgetOfExactType(WeUi);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
info • This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final:
WeButton.child, WeButton.sizeType, WeButton.theme, WeButton.size • cmps/weui/button/index.dart:13:7 • must_be_immutable
这么实用的项目为什么用的人这么少呢? 还是大家都在造轮子的阶段? 什么时候出像前端https://www.iviewui.com/ iview一样的框架。
非常感谢作者提供weui风格的flutter组件。在weui reactjs版本中有下列组件:
Preview
PreviewHeade
PreviewBody
PreviewItem
近期有计划开发这些组件吗?
现在的表单有以下不太友好的地方:
这两点我感觉是项目中必备的。
文档很多组件看不到使用说明信息
好多组件默认都把背景色写死了,以至于不能正常支持夜间模式。比如cell/index.dart
的第44行为Colors.white
,可考虑改为WeUi.getTheme(context).defaultBackgroundColor.withAlpha(50)
以便支持夜间模式。
夜间模式/自定义色彩配置示例:
...
return WeUi(
theme: WeTheme(
defaultBackgroundColor: _themeData.backgroundColor,
defaultBorderColor: _themeData.dividerColor,
primaryColor: _themeData.primaryColor,
primaryColorDisabled: _themeData.primaryColor.withAlpha(50),
warnColor: _themeData.errorColor,
warnColorDisabled: _themeData.errorColor.withAlpha(50),
),
config: WeConfig(
toastSuccessDuration: 4500,
notifyDuration: 5000,
),
child: _buildMaterialApp(homeWidget),
);
...
在Drawer中使用输入框都会报错,请问如何使用。谢谢
android apk 链接失效了。
限制输入只能是0-9
inputFormatters: [
WhitelistingTextInputFormatter(RegExp("[0-9]")),
],
望尽快出下uploader组件,建议参考微信发朋友圈选择图片及文件,预览等
怎么主动关闭alert?
navigator.pop 无法关闭
这样 循环数组的术后return 的东西都是单行重复的
如题~
目前发现三个版本的Flutter版WeUI,有木有老铁对比分析一下:https://github.com/allan-hx/flutter-weui、https://github.com/flutter-studio/flutter-weui、https://github.com/zxylovewl1/flutter_web_weui
在WeInput
中暴露setText
方法:
void setText(value) {
if (widget.onChange is Function) {
widget.onChange(value);
}
_setValue(value);
}
final GlobalKey<WeInputState> phoneInputStateKey = new GlobalKey<WeInputState>();
@override
void initState() {
super.initState();
JavaBridge.getPhoneNumber().then((value) {
phoneInputStateKey.currentState.setText(value);
});
}
WeInput(
key: phoneInputStateKey,
label: '账号',
hintText: '请输入您的手机号',
clearable: true,
type: TextInputType.text,
onChange: (value) {},
),
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.