dependOnInheritedWidgetOfExactType<_LocalizationsScope>() or dependOnInheritedElement() was called
before HomeState.initState() completed.
///代码需要在initState()后执行
@override
void initState() {
super.initState();
Future.delayed(Duration.zero, () {
//执行代码写在这里
});
}