「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
Flutter の step by step(其の四)。
以下のように実装する。
onTap: () { while(Navigator.of(context).canPop()){ Navigator.of(context).pop(); } },
onTap: () { while(Navigator.of(context).canPop()){ Navigator.of(context).pop(); } Navigator.of(context).pushNamed("/appauth"); },
import 'package:flutter/material.dart'; class MyDrawer extends StatelessWidget { @override Widget build(BuildContext context) { return Drawer(
return Scaffold( ..., drawer: MyDrawer(), );
Widget系は、上記と同じ様な共通化が可能っぽい。
// main.dart Form( child: Column( children: [ TextFormField( decoration: InputDecoration(labelText: 'id'), ), TextFormField( decoration: InputDecoration(labelText: 'password'), obscureText: true, // 追加 ), ], ), )