awesome_stepper 0.0.1 awesome_stepper: ^0.0.1 copied to clipboard
A Customizable Awesome Stepper with beautiful UI.
import 'package:flutter/material.dart';
import 'customized_stepper.dart';
import 'default_stepper.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return 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: Text('Awesome Stepper'),
centerTitle: true,
),
body: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (_) => DefaultStepper()));
},
child: Text('Default Stepper')),
SizedBox(
height: 20,
),
ElevatedButton(
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (_) => CustomStepper()));
},
child: Text('Customized Stepper'))
],
),
),
);
}
}