step_progress 0.0.2
step_progress: ^0.0.2 copied to clipboard
A progress widget for showing proccess completed step by step.
import 'package:flutter/material.dart';
import 'example_one/example_one.dart';
import 'example_two/example_two.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'FlutterStepProgressDemo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ElevatedButton(
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (_) => ExampleOne()));
},
child: Text('Example One')),
SizedBox(height: 20),
ElevatedButton(
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (_) => ExampleTwo()));
},
child: Text('Example Two')),
],
),
),
);
}
}