11 2019 档案

flutter SingleChildScrollView就像是IOS里面的ScrollView
摘要:import 'package:flutter/material.dart'; void main() { runApp( MaterialApp( title: 'Flutter gesture', home: LearnListView(), )); } class LearnListView extends StatefulWidget{ @override ... 阅读全文

posted @ 2019-11-29 17:32 高彰 阅读(579) 评论(0) 推荐(0) 编辑

flutter ListView就像iOS的tableview,安卓就是Listview GridView Widget相当于iOS的collectionview 和点击事件
摘要:简单的List(纵向) 简单的List(横向) 使用长列表,自定义参数 创建不同类型子项的List 创建一个 Grid List(就是使用形如iOS的collectionview) 左右滑动删除List项 定义参数Listview cell的点击事件是通过touch实现的 阅读全文

posted @ 2019-11-29 17:14 高彰 阅读(2048) 评论(0) 推荐(0) 编辑

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 高彰 阅读(9557) 评论(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 高彰 阅读(1471) 评论(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 高彰 阅读(512) 评论(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 高彰 阅读(475) 评论(0) 推荐(0) 编辑

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 高彰 阅读(558) 评论(0) 推荐(0) 编辑

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

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

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

posted @ 2019-11-27 18:02 高彰 阅读(9575) 评论(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 高彰 阅读(1208) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示