摘要:
没掌握的点: enabled: false,//这个属性可以禁用TextFieldonSubmitted onEdittingComplete都是在按下Enter键之后调用的函数; decoration: InputDecoration( prefixIcon: Icon(Icons.local_a 阅读全文
摘要:
import 'dart:async';import 'package:flutter/material.dart';import 'dart:convert';import 'package:dio/dio.dart';void main()=>runApp(MyApp());class MyAp 阅读全文
摘要:
import 'package:flutter/material.dart';import 'homepage.dart';import 'lastpage.dart';import 'secondpage.dart';import 'thirdpage.dart';void main()=>run 阅读全文
摘要:
import 'package:flutter/material.dart';import 'dart:convert';import 'package:http/http.dart' as http;import 'dart:ui';import 'dart:async';void main()= 阅读全文
摘要:
getData(){ http.get(host).then((response){print(response.body);}); } getData async(){ var response=await http.get(host); var datas=jsonDecode(response 阅读全文
摘要:
Settings > Editor > Live Templates 中自定义快速输入 阅读全文
摘要:
import 'package:flutter/material.dart';import 'dart:ui';void main()=>runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(Buil 阅读全文
摘要:
import 'package:flutter/material.dart';class DrawerPage extends StatefulWidget { @override _DrawerPageState createState() => _DrawerPageState();}class 阅读全文