flutter小笔记

●隐藏状态栏:引入'package:flutter/services.dart',  

SystemChrome.setEnabledSystemUIOverlays([]); //隐藏

SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);//恢复

●package get慢(撞墙)

新增环境变量 

FLUTTER_STORAGE_BASE_URL  ==> https://storage.flutter-io.cn

PUB_HOSTED_URL ==> https://pub.flutter-io.cn

执行flutter doctor

你可能感兴趣的:(flutter小笔记)