Coder Social home page Coder Social logo

tencent / mxflutter Goto Github PK

View Code? Open in Web Editor NEW
842.0 18.0 67.0 28.89 MB

使用 TypeScript/JavaScript 来开发 Flutter 应用的框架。

License: Other

CMake 0.04% C 0.11% C++ 0.25% Java 13.18% Kotlin 0.79% Ruby 0.07% Swift 0.01% Objective-C 2.89% Dart 82.42% TypeScript 0.05% HTML 0.03% Objective-C++ 0.15%
flutter typescript dart

mxflutter's People

Contributors

gaoyangclub avatar xsoap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mxflutter's Issues

【咨询】demo无法运行,报错,请问这个有什么解决方案吗?

../lib/src/widgets/src/packages/flutter/src/widgets/app.dart:140:5: Error: 'RouterDelegate' isn't a type.
RouterDelegate routerDelegate,
^^^^^^^^^^^^^^
../lib/src/widgets/src/packages/flutter/src/widgets/app.dart:141:5: Error: 'BackButtonDispatcher' isn't a type.
BackButtonDispatcher backButtonDispatcher,
^^^^^^^^^^^^^^^^^^^^
../lib/src/widgets/src/packages/flutter/src/widgets/app.dart:161:20: Error: Method not found: 'WidgetsApp.router'.
}) => WidgetsApp.router(
^^^^^^
../lib/src/widgets/src/packages/mx_dart_sdk.dart:2712:26: Error: Getter not found: 'vsyncStart'.
return FramePhase.vsyncStart;
^^^^^^^^^^
../lib/src/widgets/src/packages/flutter/src/cupertino/activity_indicator.dart:67:15: Error: Getter not found: 'CupertinoActivityIndicatorIOSVersionStyle'.
return CupertinoActivityIndicatorIOSVersionStyle.iOS13;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../lib/src/widgets/src/packages/flutter/src/cupertino/activity_indicator.dart:69:15: Error: Getter not found: 'CupertinoActivityIndicatorIOSVersionStyle'.
return CupertinoActivityIndicatorIOSVersionStyle.iOS14;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../lib/src/widgets/src/packages/flutter/src/rendering/mouse_tracking.dart:50:22: Error: The argument type 'LinkedHashMap<MouseTrackerAnnotation, Matrix4>' can't be assigned to the parameter type 'LinkedHashSet'.

  • 'LinkedHashMap' is from 'dart:collection'.
  • 'MouseTrackerAnnotation' is from 'package:flutter/src/rendering/mouse_tracking.dart' ('/D:/flutter-1.20.3/flutter/packages/flutter/lib/src/rendering/mouse_tracking.dart').
  • 'Matrix4' is from 'package:vector_math/vector_math_64.dart' ('/D:/flutter-1.20.3/flutter/.pub-cache/hosted/pub.flutter-io.cn/vector_math-2.0.8/lib/vector_math_64.dart').
  • 'LinkedHashSet' is from 'dart:collection'.
    lastAnnotations: lastAnnotations,
    ^
    ../lib/src/widgets/src/packages/flutter/src/rendering/mouse_tracking.dart:51:22: Error: The argument type 'LinkedHashMap<MouseTrackerAnnotation, Matrix4>' can't be assigned to the parameter type 'LinkedHashSet'.
  • 'LinkedHashMap' is from 'dart:collection'.
  • 'MouseTrackerAnnotation' is from 'package:flutter/src/rendering/mouse_tracking.dart' ('/D:/flutter-1.20.3/flutter/packages/flutter/lib/src/rendering/mouse_tracking.dart').
  • 'Matrix4' is from 'package:vector_math/vector_math_64.dart' ('/D:/flutter-1.20.3/flutter/.pub-cache/hosted/pub.flutter-io.cn/vector_math-2.0.8/lib/vector_math_64.dart').
  • 'LinkedHashSet' is from 'dart:collection'.
    nextAnnotations: nextAnnotations,
    ^
    ../lib/src/widgets/src/packages/flutter/src/rendering/mouse_tracking.dart:68:22: Error: The argument type 'LinkedHashMap<MouseTrackerAnnotation, Matrix4>' can't be assigned to the parameter type 'LinkedHashSet'.
  • 'LinkedHashMap' is from 'dart:collection'.
  • 'MouseTrackerAnnotation' is from 'package:flutter/src/rendering/mouse_tracking.dart' ('/D:/flutter-1.20.3/flutter/packages/flutter/lib/src/rendering/mouse_tracking.dart').
  • 'Matrix4' is from 'package:vector_math/vector_math_64.dart' ('/D:/flutter-1.20.3/flutter/.pub-cache/hosted/pub.flutter-io.cn/vector_math-2.0.8/lib/vector_math_64.dart').
  • 'LinkedHashSet' is from 'dart:collection'.
    lastAnnotations: lastAnnotations,
    ^
    ../lib/src/widgets/src/packages/flutter/src/rendering/mouse_tracking.dart:69:22: Error: The argument type 'LinkedHashMap<MouseTrackerAnnotation, Matrix4>' can't be assigned to the parameter type 'LinkedHashSet'.
  • 'LinkedHashMap' is from 'dart:collection'.
  • 'MouseTrackerAnnotation' is from 'package:flutter/src/rendering/mouse_tracking.dart' ('/D:/flutter-1.20.3/flutter/packages/flutter/lib/src/rendering/mouse_tracking.dart').
  • 'Matrix4' is from 'package:vector_math/vector_math_64.dart' ('/D:/flutter-1.20.3/flutter/.pub-cache/hosted/pub.flutter-io.cn/vector_math-2.0.8/lib/vector_math_64.dart').
  • 'LinkedHashSet' is from 'dart:collection'.
    nextAnnotations: nextAnnotations,
    ^
    ../lib/src/widgets/src/packages/flutter/src/services/system_sound.dart:26:31: Error: Getter not found: 'alert'.
    return SystemSoundType.alert;
    ^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/overflow_bar.dart:61:15: Error: Getter not found: 'OverflowBarAlignment'.
    return OverflowBarAlignment.start;
    ^^^^^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/overflow_bar.dart:63:15: Error: Getter not found: 'OverflowBarAlignment'.
    return OverflowBarAlignment.end;
    ^^^^^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/overflow_bar.dart:65:15: Error: Getter not found: 'OverflowBarAlignment'.
    return OverflowBarAlignment.center;
    ^^^^^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/form.dart:85:15: Error: Getter not found: 'AutovalidateMode'.
    return AutovalidateMode.disabled;
    ^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/form.dart:87:15: Error: Getter not found: 'AutovalidateMode'.
    return AutovalidateMode.always;
    ^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/form.dart:89:15: Error: Getter not found: 'AutovalidateMode'.
    return AutovalidateMode.onUserInteraction;
    ^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/autofill.dart:42:15: Error: Getter not found: 'AutofillContextAction'.
    return AutofillContextAction.commit;
    ^^^^^^^^^^^^^^^^^^^^^
    ../lib/src/widgets/src/packages/flutter/src/widgets/autofill.dart:44:15: Error: Getter not found: 'AutofillContextAction'.
    return AutofillContextAction.cancel;
    ^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\flutter-1.20.3\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 896

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\flutter-1.20.3\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 44s
Picked up _JAVA_OPTIONS: -Djava.net.preferIpv4Stack=true

建议加上热更和热修复

引入ts开发把代码逻辑这块做到了热更和热修复。
那UI那块有打算支持热更么?类似unity的ugui,可以打包成ab包,加上ts开发,目前是做到了热更和热修复。

【bug】windows下路径问题

/D:/flutter-1.20.3/flutter/.pub-cache/git/mxflutter-16f9aa991576885be693734e7e95b5a5516aa4cd/lib/src/widgets/src/packages/flutter/src/widgets/restoration_properties.dart:11:8: Error: Error when reading '/D:/flutter-1.20.3/flutter/packages/flutter/lib/src/widgets/restoration.dart': 系统找不到指定的文件�?
编译的时候遇到过目录无法找到的问题,看了一下路径下是有文件的,只是 D盘下面多了个 /D 导致无法找到,这种可以做适配吗?

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.