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