v0.0.5bottom_drawer
Ein Bottom-Drawer-Widget, unterstützt benutzerdefinierte Kopfzeile und Körper, unterstützt Listenkörper und Drag-to-open- und -close-Funktionen.
36Likes 66330-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Ein Flutter-Unterzieher-Widget.
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Bottom Drawer.
dependencies:
bottom_drawer: ^0.0.5
import 'package:bottom_drawer/bottom_drawer.dart';
Create a bottom drawer controller.
/// create a bottom drawer controller to control the drawer.
BottomDrawerController controller = BottomDrawerController();
Build a bottom drawer widget.
/// return a bottom drawer widget.
Widget buildBottomDrawer(BuildContext context) {
return BottomDrawer(
/// your customized drawer header.
header: Container(),
/// your customized drawer body.
body: Container(),
/// your customized drawer header height.
headerHeight: 60.0,
/// your customized drawer body height.
drawerHeight: 180.0,
/// drawer background color.
color: Colors.lightBlue,
/// drawer controller.
controller: controller,
);
}
Control the bottom drawer.
/// open the bottom drawer.
controller.open();
/// close the bottom drawer.
controller.close();
For more information, see the example.
Abhängigkeiten 2 Einträge
{"sdk":"flutter"}{"sdk":"flutter"}Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗