1// Copyright 2017 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5import 'package:flutter/cupertino.dart'; 6 7import '../../gallery/demo.dart'; 8 9class CupertinoProgressIndicatorDemo extends StatelessWidget { 10 static const String routeName = '/cupertino/progress_indicator'; 11 12 @override 13 Widget build(BuildContext context) { 14 return CupertinoPageScaffold( 15 navigationBar: CupertinoNavigationBar( 16 // We're specifying a back label here because the previous page is a 17 // Material page. CupertinoPageRoutes could auto-populate these back 18 // labels. 19 previousPageTitle: 'Cupertino', 20 middle: const Text('Activity Indicator'), 21 trailing: CupertinoDemoDocumentationButton(routeName), 22 ), 23 child: const Center( 24 child: CupertinoActivityIndicator(), 25 ), 26 ); 27 } 28} 29