bottom_progress 0.0.3
bottom_progress: ^0.0.3 copied to clipboard

A new Flutter package project.

example/example.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      bottomNavigationBar: BottomAppBar(
        elevation: 0,
        child: BottomProgress(
          pointCount: 1,
          pageCount: 6,
          onColor: Colors.red,
          offColor: Colors.grey,
          fontSize: 40,
        ),
      ),
    );
  }

}