dynamic_appbar 1.0.0 copy "dynamic_appbar: ^1.0.0" to clipboard
dynamic_appbar: ^1.0.0 copied to clipboard

A flutter dynamic appbar package.

Dynamic AppBar for Flutter #

The Dynamic AppBar for Flutter enhances user experience by dynamically hiding the app bar when scrolling down and reappearing when scrolling up. It offers customizable features such as dynamic title, left and right buttons, and adjustable height and color options, making it a versatile solution for navigation in Flutter applications.

Features #

  • Automatically hides the app bar when scrolling down
  • Reappears the app bar when scrolling up
  • Customizable title, left and right buttons
  • Adjustable app bar height and color

Getting started #

To use this package, add dynamic_appbar as a dependency in your pubspec.yaml file:

dependencies:
  dynamic_appbar: ^1.0.0

Usage #

Here's a basic example of how to use the DynamicAppBarView:

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: DynamicAppBarView(
          title: Text('My App'),
          leftButton: IconButton(
            icon: Icon(Icons.menu),
            onPressed: () {
              // Handle menu button press
            },
          ),
          rightButton: IconButton(
            icon: Icon(Icons.settings),
            onPressed: () {
              // Handle settings button press
            },
          ),
          child: ListView.builder(
            itemCount: 50,
            itemBuilder: (context, index) {
              return ListTile(
                title: Text('Item $index'),
              );
            },
          ),
        ),
      ),
    );
  }
}

Contributing #

Contributions are welcome! If you find a bug or have a feature request, please open an issue on the GitHub repository. Pull requests are also welcome.

License #

This project is licensed under the 3-Clause BSD License. See the LICENSE file for more information.

6
likes
0
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter dynamic appbar package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dynamic_appbar