iOSã§ã® UINavigationBar
ã«ãããã®ã AppBar
ã§ãããä¾ãã° AppBar ã«è¨å®ãã¿ã³ãç½®ãããã¨ããå ´åãã©ã®ããã«å¯¾å¿ããã°è¯ãã®ããè¨ãã
å®è¡æã®ã¹ã¯ã·ã§
macOSã§ã¯DEBUGã®æåã«é ãã¦è¦ãã«ãããAndroidã¨åæ§ã«è¨å®ãã¿ã³ã表示ããã¦ãããtooltip
ãæå®ãããã¨ã§ãã¦ã¹ãªã¼ãã¼æã«ãè¨å®ãã®æåã表示ãããã
ãµã³ãã«ã³ã¼ã
以ä¸ããµã³ãã«ã³ã¼ãã§ããã
class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), actions: [ IconButton( icon: const Icon(Icons.settings), tooltip: 'è¨å®', onPressed: () { // è¨å®ãã¿ã³ãã¿ããããæã®æå ScaffoldMessenger.of(context).showSnackBar( const SnackBar(content: Text('This is a snackbar')) ); }, ) ], ), body: Center(