上一页 1 2 3 4 5 6 7 ··· 10 下一页

2020年1月14日

摘要: 代码: class BottomClipper extends CustomClipper<Path> { @override Path getClip(Size size) {//child 元素的size var path = Path(); path.lineTo(0, 0);//起始点 pa 阅读全文
posted @ 2020-01-14 19:17 pp/ing 阅读(520) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; class HomePage extends StatelessWidget { const HomePage({Key key}) : super(key: key); @override Widget bui 阅读全文
posted @ 2020-01-14 18:14 pp/ing 阅读(181) 评论(0) 推荐(0) 编辑

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) 编辑

2020年1月11日

摘要: 代码: import 'package:flutter/material.dart'; class MyhomePage extends StatefulWidget { MyhomePage({Key key}) : super(key: key); @override _MyhomePageSt 阅读全文
posted @ 2020-01-11 18:40 pp/ing 阅读(162) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; class KeepAliveDemo extends StatefulWidget { @override _KeepAliveDemoState createState() => _KeepAliveDemo 阅读全文
posted @ 2020-01-11 17:32 pp/ing 阅读(185) 评论(0) 推荐(0) 编辑
 
摘要: 代码: import 'package:flutter/material.dart'; import 'dart:ui';//过滤器组件 class MaoBaoLi extends StatelessWidget { const MaoBaoLi({Key key}) : super(key: k 阅读全文
posted @ 2020-01-11 16:50 pp/ing 阅读(340) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页