上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 39 下一页

2019年11月29日

flutter 获取当前系统时间,持续更新中

摘要: main() { //创建时间对象,获取当前时间 DateTime now = new DateTime.now(); print("当前时间:$now"); //创建时间对象,并指定时间 DateTime victoryDay = new DateTime(1945,9,9); print("日本于${victoryDay.year}年${victoryDay.mo... 阅读全文

posted @ 2019-11-29 16:06 高彰 阅读(9615) 评论(0) 推荐(0)

flutter floatingActionButton悬浮按钮控件

摘要: import 'package:flutter/material.dart'; void main() { runApp( MaterialApp( title: 'Flutter gesture', home: LearnFloatingActionButton(), )); } class LearnFloatingActionButton extends Sta... 阅读全文

posted @ 2019-11-29 15:36 高彰 阅读(1481) 评论(0) 推荐(0)

flutter 导航栏 BottomNavigationBar底部导航栏相当于iOS tabbar

摘要: //main.dart文件 import 'package:flutter/material.dart'; import 'package:myapp/Tabbar.dart'; void main() => runApp(MyApp()); class MyApp extends Stateles 阅读全文

posted @ 2019-11-29 14:45 高彰 阅读(523) 评论(0) 推荐(0)

flutter的Scaffold,基本的纸墨布局

摘要: import 'package:flutter/material.dart'; void main() { runApp( MaterialApp( title: 'Flutter gesture', // home: TutorialHome(), home: LearnScaffold(), )); } class LearnScaffold extends... 阅读全文

posted @ 2019-11-29 11:26 高彰 阅读(483) 评论(0) 推荐(0)

2019年11月28日

flutter的Text,持续更新

摘要: //text的主要属性有:textAlign,maxLines,overflow等。 Text( "hello flutter!", TextAlign:TextAlign.center, maxLines:1, overflow:TextOverflow.ellipsis, // 显示不完,就在后面显示点点 style:TextStyle( fontSize:30.... 阅读全文

posted @ 2019-11-28 17:32 高彰 阅读(571) 评论(0) 推荐(0)

flutter中的=>表示什么

摘要: // =>是return语句的简写 add3(a, b) => a + b; 阅读全文

posted @ 2019-11-28 10:34 高彰 阅读(1675) 评论(0) 推荐(0)

2019年11月27日

Flutter开发 防止OverFlow溢出

摘要: 大家在学习Flutter的时候,刚刚开始学习布局应该会各种遇到溢出。比如在用到Row或者Column经常会遇到布局溢出的问题。 The overflowing RenderFlex has an orientation of Axis.horizontal.flutter: The edge of 阅读全文

posted @ 2019-11-27 18:02 高彰 阅读(9805) 评论(0) 推荐(0)

Flutter BUG Error connecting to the service protocol: HttpException: Connection closed before full..

摘要: Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:53811/WcKOPFtfQvg=/ 阅读全文

posted @ 2019-11-27 17:05 高彰 阅读(1328) 评论(0) 推荐(0)

2019年10月15日

NSMutableArray和NSArray的相互转换

摘要: // NSArray --> NSMutableArray NSMutableArray *myMutableArray = [myArray mutableCopy]; // NSMutableArray --> NSArray NSArray *myArray = [myMutableArray copy]; 阅读全文

posted @ 2019-10-15 13:45 高彰 阅读(356) 评论(0) 推荐(0)

2019年10月14日

ios打印超长字符串

摘要: //超越打印限制 #define NSLog(format,...) printf("%s",[[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String]) 阅读全文

posted @ 2019-10-14 09:44 高彰 阅读(670) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 39 下一页

导航