forked from firka/flutter
[rename fixit] ToolBar -> AppBar
* left -> leading (Removes an LTR bias) * center -> title (Widget was actually centered) * right -> actions (Removes an LTR bias, asymmetric with leading) Fixes #2348
This commit is contained in:
@@ -34,8 +34,8 @@ class _FlutterDemoState extends State<FlutterDemo> {
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
return new Scaffold(
|
||||
toolBar: new ToolBar(
|
||||
center: new Text('Flutter Demo')
|
||||
appBar: new AppBar(
|
||||
title: new Text('Flutter Demo')
|
||||
),
|
||||
body: new Center(
|
||||
child: new Text('Button tapped $_counter time${ _counter == 1 ? '' : 's' }.')
|
||||
|
||||
Reference in New Issue
Block a user