A new Flutter project.
MVVM
$ flutter run -d chrome --web-port=5000
$ open -a Simulator
$ flutter run
... take a long time
$ dart pub add provider
- pubspec.yamlに追記する
dependencies:
provider: ^3.1.0+1
- 更新する
$ flutter pub get
$ flutter format .
A GlobalKey can only be specified on one widget at a time in the widget tree.
The relevant error-causing widget was:
MaterialApp file:///Users/s11604/IdeaProjects/bambootuna/posttree/lib/main.dart:11:12
ホットリロードではなく、もう一回flutter run
したらなおったw
GoogleService-Info.plist
のREVERSED_CLIENT_IDをInfo.plist
に書き込む
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
...
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.??????????</string>
</array>
</dict>
</array>
</dict>
</plist>