Giter Site home page Giter Site logo

fsuper's Issues

fsuper相互嵌套,视图更新的时候,子元素会闪烁

测试代码

把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),
      ),
    );
  }
}

xcode 12 ios14 运行报错

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));
^^^^^^^^

2.0.0版本编译报错

`/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'.

  • 'FControlState' is from 'package:fcontrol/fcontrol.dart' ('/D:/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/fcontrol-1.0.0/lib/fcontrol.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'MaterialStateMouseCursor'.
    MaterialStateMouseCursor.clickable,
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /D:/FlutterSDK/flutter/.pub-cache/hosted/pub.flutter-io.cn/fcontrol-1.0.0/lib/fcontrol.dart:248:7: Error: No named parameter with the name 'cursor'.
    cursor: effectiveMouseCursor,
    `

2.0版本使用报错

flutter版本1.17.5,fsuper依赖的fcontrol在运行时报错:

Error: Type 'MouseCursor' not found.

fcontrol

fsuper 依赖的 fcontrol 是做什么的。

flutter create .失败,无法克隆下来

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

Fsuper2..0版本报错

fsuper依赖的fcontrol在运行时报错:

错误:找不到类型'MouseCursor'。

Support flutter 3.0

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.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../appdev/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback(_handleSizeChanged);
    ^
    ../../../appdev/flutter/.pub-cache/hosted/pub.flutter-io.cn/fsuper_nullsafety-3.0.1/lib/fsuper_nullsafety.dart:342:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../appdev/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addPostFrameCallback(_handleSizeChanged);
    ^
    ../../../appdev/flutter/.pub-cache/hosted/pub.flutter-io.cn/fsuper_nullsafety-3.0.1/lib/fsuper_nullsafety.dart:626:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../appdev/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback(postFrameCallback);
    ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.