上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 33 下一页
摘要: 没掌握的点: enabled: false,//这个属性可以禁用TextFieldonSubmitted onEdittingComplete都是在按下Enter键之后调用的函数; decoration: InputDecoration( prefixIcon: Icon(Icons.local_a 阅读全文
posted @ 2019-05-03 20:48 braveheart007 阅读(258) 评论(0) 推荐(0) 编辑
摘要: import 'dart:async';import 'package:flutter/material.dart';import 'dart:convert';import 'package:dio/dio.dart';void main()=>runApp(MyApp());class MyAp 阅读全文
posted @ 2019-05-01 08:14 braveheart007 阅读(211) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart';import 'homepage.dart';import 'lastpage.dart';import 'secondpage.dart';import 'thirdpage.dart';void main()=>run 阅读全文
posted @ 2019-04-29 19:32 braveheart007 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart';import 'dart:convert';import 'package:http/http.dart' as http;import 'dart:ui';import 'dart:async';void main()= 阅读全文
posted @ 2019-04-29 00:21 braveheart007 阅读(266) 评论(0) 推荐(0) 编辑
摘要: getData(){ http.get(host).then((response){print(response.body);}); } getData async(){ var response=await http.get(host); var datas=jsonDecode(response 阅读全文
posted @ 2019-04-28 20:49 braveheart007 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Settings > Editor > Live Templates 中自定义快速输入 阅读全文
posted @ 2019-04-27 21:26 braveheart007 阅读(125) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart';import 'dart:ui';void main()=>runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(Buil 阅读全文
posted @ 2019-04-26 15:00 braveheart007 阅读(174) 评论(0) 推荐(0) 编辑
摘要: import 'package:flutter/material.dart';class DrawerPage extends StatefulWidget { @override _DrawerPageState createState() => _DrawerPageState();}class 阅读全文
posted @ 2019-04-26 14:59 braveheart007 阅读(725) 评论(0) 推荐(0) 编辑
摘要: http://www.fsdpp.cn/keji/15181643866269.html http://www.fsdpp.cn/keji/14022417375136.html 阅读全文
posted @ 2019-04-24 11:21 braveheart007 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 注意点: 用InheritedWidget包裹的树内的Widget才可以分享InheritedWidget提供的数据(包裹的时候请用数据类定义实例,eg: data: ShareData(),),同时InheritedWidget的数据由一个独立于InheritedWidget的数据类单独定义。 如 阅读全文
posted @ 2019-04-24 09:29 braveheart007 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 33 下一页