ApplePayの新旧iPhone端末のSuica移行
simulatorを管理するコマンド
/Application/Xcode6.app/Contents/Developer/usr/bin/simctl
FlutterでSnackbarでハマるcontext
FlutterのBuildContextとは何か - Qiita
flutter - Scaffold.of() called with a context that does not contain a Scaffold - Stack Overflow
理由
This exception happens because you are using the context of the widget that instantiated Scaffold. Not the context of a child of Scaffold.
StatelessWidgetをmainにしてsyncを使うたたき台
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: MyAppOne(), ); } } class MyAppOne extends StatefulWidget { @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State<MyAppOne> { @override void initState() { super.initState(); print("initState"); initialize(); } void initialize() async {} @override void dispose() { super.dispose(); print("dispose"); } @override Widget build(BuildContext context) {} }