mirror of
https://github.com/flutter/samples.git
synced 2026-03-22 04:17:50 +00:00
Remove back button from demo appbars (#213)
This commit is contained in:
@@ -12,6 +12,7 @@ class CupertinoProgressIndicatorDemo extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
automaticallyImplyLeading: false,
|
||||
middle: Text(
|
||||
GalleryLocalizations.of(context).demoCupertinoActivityIndicatorTitle,
|
||||
),
|
||||
|
||||
@@ -21,6 +21,7 @@ class _CupertinoSliderDemoState extends State<CupertinoSliderDemo> {
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
automaticallyImplyLeading: false,
|
||||
middle: Text(GalleryLocalizations.of(context).demoCupertinoSliderTitle),
|
||||
),
|
||||
child: DefaultTextStyle(
|
||||
|
||||
@@ -20,6 +20,7 @@ class _CupertinoSwitchDemoState extends State<CupertinoSwitchDemo> {
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: CupertinoNavigationBar(
|
||||
automaticallyImplyLeading: false,
|
||||
middle: Text(
|
||||
GalleryLocalizations.of(context).demoSelectionControlsSwitchTitle,
|
||||
),
|
||||
|
||||
@@ -39,6 +39,7 @@ class _BottomAppBarDemoState extends State<BottomAppBarDemo> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
automaticallyImplyLeading: false,
|
||||
title: Text(GalleryLocalizations.of(context).demoBottomAppBarTitle),
|
||||
),
|
||||
body: ListView(
|
||||
|
||||
@@ -93,6 +93,7 @@ class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo>
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
automaticallyImplyLeading: false,
|
||||
title: Text(_title),
|
||||
),
|
||||
body: Center(
|
||||
|
||||
Reference in New Issue
Block a user