1
0
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:
rami-a
2020-01-08 10:47:15 -05:00
committed by GitHub
parent c986d0a68a
commit 417bd72874
5 changed files with 5 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ class CupertinoProgressIndicatorDemo extends StatelessWidget {
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
automaticallyImplyLeading: false,
middle: Text(
GalleryLocalizations.of(context).demoCupertinoActivityIndicatorTitle,
),

View File

@@ -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(

View File

@@ -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,
),

View File

@@ -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(

View File

@@ -93,6 +93,7 @@ class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo>
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: Text(_title),
),
body: Center(