slidable_bottom_app_bar 1.0.0
slidable_bottom_app_bar: ^1.0.0 copied to clipboard
A slidable bottom app bar can slide to the medal of the screen.
A flutter package create a bottom app bar that can slide to the medal of the screen when clicking on the button or by sliding by hande.
Usage #
return Scaffold(
SlidableBottomAppBar(
shape: SlidableBottomAppBarShape.wave,
color: Colors.Blue,
buttonColor: Colors.Blue,
maxHeight: screenSize.height * 0.5,
allowShadow: true,
body: Column(
...
),
buttonChild: Icon(
Icons.refresh,
color: Colors.white,
)
onButtonPressed: () {
...
},
pageBody: SafeArea(
Text('page contents'),
),
),
);
Preview #
...
SlidableBottomAppBar(
hasCenterButton: true,
...
[Preview]
...
SlidableBottomAppBar(
hasCenterButton: false,
...
[Preview]
Getting started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
slidable_bottom_app_bar: ^0.0.3
Then run $ flutter pub get. In your library, add the following import:
import 'package:slidable_bottom_app_bar/slidable_bottom_app_bar.dart';