horizontal_stepper_flutter 1.0.3 copy "horizontal_stepper_flutter: ^1.0.3" to clipboard
horizontal_stepper_flutter: ^1.0.3 copied to clipboard

A new horizontal stepper package for flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:horizontal_stepper_flutter/horizontal_stepper_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Horizontal Stepper',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Horizontal Stepper'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: FlutterHorizontalStepper(
          steps: const ["Step-1", "Step-2", "Step-3", "Step-4"],
          radius: 45,
          currentStep: 3,
          child: const [Text("1"), Text("2"), Text("3"), Text("4")],
        ),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
2
likes
130
pub points
84%
popularity

Publisher

unverified uploader

A new horizontal stepper package for flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on horizontal_stepper_flutter