- 博客(9)
- 收藏
- 关注
原创 flutter 国际化默认
return MaterialApp( debugShowCheckedModeBanner: false, localizationsDelegates: [ S.delegate, GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, GlobalWidgetsLocalizations.del
2020-11-23 18:04:59
411
原创 flutter调用iOS源码
1.创建FlutterNativePlugin.h#import <Flutter/Flutter.h>#import <UIKit/UIKit.h>@interface AppDelegate : FlutterAppDelegate@end2.创建FlutterNativePlugin.m#import "FlutterNativePlugin.h"...
2020-04-28 15:20:46
639
转载 flutter 改变状态栏字体颜色
void main() { runApp(MyApp()); //白色 SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);void main() { runApp(MyApp()); //黑色 SystemChrome.setSystemUIOverlayStyle(SystemUiOver...
2020-04-28 15:02:29
920
原创 flutter和android相互通信
最新的android接受消息改变了1.flutter发消息到androidflutter 端//定义通道,作为通信标识符 static const platform = const MethodChannel("add"); //发消息的方法 Future<Null> incrementCount() async { int result = 0; ...
2020-04-16 09:32:45
645
2
原创 设置pageview开始显示第二页
_pageController = new PageController( initialPage: 1, );
2020-04-03 15:39:37
1050
原创 flutter延迟执行代码
/// 延时2s执行返回Future.delayed(Duration(seconds: 2), (){ Navigator.pushAndRemoveUntil( context, new MaterialPageRoute(builder: (context) => new Home()), print('延时2s执行');})...
2020-04-03 15:04:12
1878
原创 Flutter 跳转并关闭所有或当前页面
///跳转并关闭当前页面 Navigator.pushAndRemoveUntil( context, new MaterialPageRoute(builder: (context) => new MyHomePage()), (route) => route == null, );///跳转到起始页并关闭所...
2020-04-03 11:56:07
8625
转载 Flutter更改textfield获取焦点失去焦点下划线的颜色
child: TextField(controller: pwdController,obscureText: true,decoration: InputDecoration(hintText: ‘请输入验证码’,prefixIcon: Icon(Icons.lock),enabledBorder: UnderlineInputBorder(borderSide: BorderSi...
2020-04-01 12:51:49
3234
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人