2020年1月13日

摘要: 代码: import 'package:flutter/material.dart'; class ExpansionPaneListDemo extends StatefulWidget { @override _ExpansionPaneListDemoState createState() = 阅读全文
posted @ 2020-01-13 19:11 pp/ing 阅读(189) 评论(0) 推荐(0) 编辑
 
摘要: 代码: body: Center( child: ExpansionTile( leading: Icon(Icons.ac_unit),//左边图标 title: Text('点击打开'),//图标后面的文字 backgroundColor: Colors.orange,//打开的背景色 chil 阅读全文
posted @ 2020-01-13 18:46 pp/ing 阅读(469) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; class WarpDemo extends StatefulWidget { WarpDemo({Key key}) : super(key: key); @override _WarpDemoState cr 阅读全文
posted @ 2020-01-13 18:25 pp/ing 阅读(242) 评论(0) 推荐(0) 编辑
 
摘要: 假数据 代码: const searchList = [ "aa北京-上海", "北京-海南 a", "北京-郑州 bb", "北京-cc 日本", "北京dd -韩国" ]; const defalutSuggert = [ "推荐路线 上海 - 郑州", "推荐路线 西安 - 郑州" ]; co 阅读全文
posted @ 2020-01-13 16:26 pp/ing 阅读(335) 评论(0) 推荐(0) 编辑
 
摘要: 代码: Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('搜索条'), actions: <Widget>[//导航条右方 类似rightBarItem IconButton( ico 阅读全文
posted @ 2020-01-13 14:32 pp/ing 阅读(2695) 评论(0) 推荐(0) 编辑