Flutter
wellchang
新浪微博http://weibo.com/210003638
展开
-
flutter plugin try to see if these plugins support the Android V2 embedding
importimport android.content.Context;import io.flutter.embedding.engine.plugins.FlutterPlugin;import io.flutter.plugin.common.BinaryMessenger;implements添加FlutterPlugin添加以下代码,酌情修改 static MethodChannel methodChannel; private Context applica.原创 2021-09-15 17:32:00 · 1530 阅读 · 0 评论 -
flutter web调用js带回调函数的3种方法
flutter web调用js带回调函数的3种方法1.直接调用2.转为Promise3.转为Future(推荐)1.直接调用///js funcfunction invoke(index, success, fail){ if(index > 1) { success('succes'); } else { fail('fail'); }}/// dart@JS('invoke')external static invoke(int index, void Fu原创 2021-07-01 10:54:08 · 1734 阅读 · 0 评论 -
flutter is not a subtype of type ‘Map<String, dynamic>‘
Navigator.of(viewService.context) .pushNamed( 'home', arguments:{}); //这里传入空原创 2020-09-03 15:00:45 · 3140 阅读 · 0 评论 -
flutter A dismissed Dismissible widget is still part of the tree.
在Flutter中listview使用Dismissible组件进行滑动删除时报这个错误,其中一个可能的原因就是key设置不正确,导致无法识别正确的Dismissible组件而没有删除,比如我一开始设置,就会报错key:Key("key$index")但是我改成,就ok了key:Key("key_$index")...原创 2019-10-03 01:15:45 · 1896 阅读 · 0 评论