fliggy-mobile / fsuper Goto Github PK
View Code? Open in Web Editor NEWA super powerful widget to help developers build complex views quickly and comfortably.
License: Other
A super powerful widget to help developers build complex views quickly and comfortably.
License: Other
把AddNotesTextField 放到stfulwidget中,更新state,
AddNotesTextField ->FSuper->child1->child1 闪烁
class AddNotesTextField extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FSuper(
width: 303,
height: 80.5,
child1Alignment:Alignment.bottomCenter ,
child1: FSuper( // 容器,需要注意child1和child2的层级
width: 303,
height: 63.5,
backgroundColor: Color(0xFF26465C),
corner:Corner(rightTopCorner:6,leftBottomCorner: 6,rightBottomCorner: 6),
child1Alignment: Alignment.center,
child1: FSuper(
width: 283,
height: 43.5,
child1: TextField(
maxLines: 2,
maxLength: null,
style: TextStyle(fontSize: 12,color: Colors.white),
decoration: InputDecoration(
isDense: true,
contentPadding: EdgeInsets.all(5),
border: OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(6)),borderSide: BorderSide.none),
fillColor:Color(0xff486F8D),
filled: true
),
),
),
) ,
child2Alignment: Alignment.topLeft,
child2: FSuper( // 头部
width: 70,
height: 22.5,
text: 'add notes',
textSize: 12,
textColor: Color(0xffF29D2C),
textAlign: TextAlign.center,
textAlignment: Alignment.center,
backgroundColor: Color(0xFF26465C),
corner:Corner(leftTopCorner: 5.625,rightTopCorner: 5.625),
),
);
}
}
Flutter 1.22.0-10.0.pre.221
xcode 12 模拟器iphone ios14环境
flutter run 后 报错
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:710:9: Error: Type 'Overflow' not found.
final Overflow overflow;
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:756:5: Error: Type 'Overflow' not found.
Overflow overflow = Overflow.clip,
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:845:3: Error: Type 'Overflow' not found.
Overflow get overflow => _overflow;
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:846:3: Error: Type 'Overflow' not found.
Overflow _overflow;
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:848:16: Error: Type 'Overflow' not found.
set overflow(Overflow value) {
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:469:17: Error: The getter 'Overflow' isn't defined for the class '_FSuperState'.
- '_FSuperState' is from 'package:fsuper/fsuper.dart' ('../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Overflow'.
overflow: Overflow.visible,
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:667:21: Error: Getter not found: 'Overflow'.
this.overflow = Overflow.clip,
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:710:9: Error: 'Overflow' isn't a type.
final Overflow overflow;
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:739:33: Error: 'Overflow' isn't a type.
properties.add(EnumProperty('overflow', overflow));
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:756:5: Error: 'Overflow' isn't a type.
Overflow overflow = Overflow.clip,
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:756:25: Error: Getter not found: 'Overflow'.
Overflow overflow = Overflow.clip,
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:846:3: Error: 'Overflow' isn't a type.
Overflow _overflow;
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:848:16: Error: 'Overflow' isn't a type.
set overflow(Overflow value) {
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:1049:22: Error: The getter 'Overflow' isn't defined for the class '_RenderStack'.
- '_RenderStack' is from 'package:fsuper/fsuper.dart' ('../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Overflow'.
if (_overflow == Overflow.clip && _hasVisualOverflow) {
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/fsuper-2.0.2/lib/fsuper.dart:1068:33: Error: 'Overflow' isn't a type.
properties.add(EnumProperty('overflow', overflow));
^^^^^^^^
超出最大字数或一行,组后显示省略号,该怎么设置
flutter版本1.17.5,fsuper依赖的fcontrol在运行时报错:
Error: Type 'MouseCursor' not found.
fsuper依赖的fcontrol在运行时报错:
错误:找不到类型'MouseCursor'。
fsuper 依赖的 fcontrol 是做什么的。
翻了下源码,貌似是固定设置成 Colors.redAccent 了。
Git error. Command: git clone --mirror [email protected]:Fliggy-Mobile/fcommon.git /Users/damianshou/Documents/flutter/.pub-cache/git/cache/fcommon-f93b3357d285e9e1a9d497011589284c8dcdcf4a
stdout:
stderr: Cloning into bare repository '/Users/damianshou/Documents/flutter/.pub-cache/git/cache/fcommon-f93b3357d285e9e1a9d497011589284c8dcdcf4a'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit code: 128
FSuper控件的onClick怎么给他添加点击效果?
See this error:
../../../appdev/flutter/.pub-cache/hosted/pub.flutter-io.cn/fsuper_nullsafety-3.0.1/lib/fsuper_nullsafety.dart:330:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
点击能配置响应效果吗 高亮这种
fcontrol-1.0.0/lib/fcontrol.dart:157:3: Error: Type 'MouseCursor' not found.
导入就会报错
打包 会报空安全,兼容一下新版本吧。
`/D:/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/fcontrol-1.0.0/lib/fcontrol.dart:157:3: Error: Type 'MouseCursor' not found.
MouseCursor effectiveMouseCursor;
^^^^^^^^^^^
/D:/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/fcontrol-1.0.0/lib/fcontrol.dart:157:3: Error: 'MouseCursor' isn't a type.
MouseCursor effectiveMouseCursor;
^^^^^^^^^^^
/D:/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/fcontrol-1.0.0/lib/fcontrol.dart:161:60: Error: 'MouseCursor' isn't a type.
effectiveMouseCursor = MaterialStateProperty.resolveAs(
^^^^^^^^^^^
/D:/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/fcontrol-1.0.0/lib/fcontrol.dart:162:7: Error: The getter 'MaterialStateMouseCursor' isn't defined for the class 'FControlState'.
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.