[flutter] 변경된 스낵바(SnackBar) 문법
기존 문법 Scaffold( key: scaffoldKey, body: Builder( builder: (BuildContext context) { return GestureDetector( onTap: () { Scaffold.of(context).showSnackBar(SnackBar( content: const Text('snack'), duration: const Duration(seconds: 1), action: SnackBarAction( label: 'ACTION', onPressed: () { }, ), )); }, child: const Text('SHOW SNACK'), ); }, ) ); 변경된 문법 Scaffold( key: scaffoldKey, body: GestureDetec..
2021. 10. 19.