awesome_stepper 0.1.2 awesome_stepper: ^0.1.2 copied to clipboard
A Customizable Awesome Stepper with beautiful UI to develop awesome steppers.
import 'package:flutter/material.dart';
import 'customized_stepper.dart';
import 'default_stepper.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Awesome Stepper',
home: Home(),
);
}
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Awesome Stepper'),
centerTitle: true,
),
body: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => const DefaultStepper()));
},
child: const Text('Default Stepper')),
const SizedBox(
height: 20,
),
ElevatedButton(
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (_) => const CustomStepper()));
},
child: const Text('Customized Stepper'))
],
),
),
);
}
}