Flutterでグーグルサインインボタンを出す
Flutterでグーグルサインインボタン簡単に出せた。 pic.twitter.com/lMPAY6aAKm
— shogo.yamada@Flutterマン (@yshogo87) March 24, 2019
上のようないわゆるよくあるボタンである。
出し方は下記のプラグインを導入する
実装はこんな感じ。一行書くだけ
Widget _loginLayout() { return Container( color: Colors.black.withOpacity(0.3), child: Center( child: GoogleSignInButton( onPressed: () {}, ), ), ); }