Vollständig anpassbare Bottom-Navigation-Bar mit mehreren integrierten Formen und Unterstützung für benutzerdefinierte Formen sowie eingebaute Übergangsanimationen
Aus öffentlichen Paketdaten erstellte Orientierung.
Eine vollständig anpassbare Bottom-Navigation für Flutter mit mehreren eingebauten Formen und Unterstützung für benutzerdefinierte Formen. Enthält reibungslose Übergangsanimationen zwischen Tabs, die visuell ansprechende Navigationserfahrungen ermöglichen. Für Entwickler konzipiert, die sowohl ästhetische Flexibilität als auch nahtlose Benutzerinteraktionen über Plattformen hinweg suchen. Das Paket ist leichtgewichtig und lässt sich problemlos in bestehende Flutter-Apps integrieren.
Anwendungsfälle
Benutzerdefinierte Tab-Designs in mobilen Apps
Verbesserte Navigation mit animierten Übergängen
Plattformübergreifende untere Leisten
Moderne UI-Implementierungen
interaktive App-Schnittstellen
Hauptmerkmale
Mehrere integrierte Formen
Unterstützung für benutzerdefinierte Formen
Eingebaute Übergangsanimationen
Hochgradig anpassbare Gestaltung
Plattformübergreifende Kompatibilität
Geeignet für
Flutter-Entwickler, die moderne Apps erstellen
designorientierte UI-Implementierungen
Apps mit einzigartigen Navigationsmustern
Entwickler, die animationsreiche Komponenten wollen
Projekte für mehrere Plattformen
Hinweise
Verständnis für benutzerdefinierte Malerei erforderlich
Kann die Komplexität für einfache Anwendungsfälle erhöhen
Die Animationsleistung sollte auf günstigeren Geräten getestet werden
Beschränkte Dokumentation über grundlegende Beispiele hinaus
Am besten geeignet für Apps mit spezifischen Navigationserfordernissen
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
shaped bottom bar
A new bottom bar in Flutter! a shaped bottom bar.
Choose your shape and your animation and let us do the work.
Installation
Widgets introduction
Example
Installing
Add this line to pubspec
dependencies:shaped_bottom_bar:^1.1.0
Widgets
ShapedBottomBar This the main widget that will create the bottom bar.
With just two required parameters you get a full bottom bar.
required parameters
onItemChanged function that trigger every time you switch between items
listItems list of type ShapedItemObject that will be rendered in the bottom bar
this will create a simple bottom bar without any shape with just a different color for the selected item
Other parameters
shape variable of type ShapeType enum contains all available shapes, by default it's set to None
shapeColor the color of the shape once it selected, by default it's null
customShape a CustomPaint type passed to the bottom bar to render a custom shape other than the built-in shapes, to use the customShape you need to set shape to ShapeType.CUSTOM
PS: if you are using customShape the shapeColor parameter won't have any effect on your shape.
selectedIconColor the selected icon color, by default it's white
backgroundColor the background of the shaped bottom bar, by default it's blue
selectedItemIndex the default selected item, by default it's the first one (index 0)
textStyle the text style you want to have on the items text (color, size, font family...)
animationType attribute of type ANIMATION_TYPE let you choose the animation type possible values:
NONE
ROTATE
FADE
SLIDE_VERTICALLY
with3dEffect enable/disable the 3D effect on bottom bar selected shape by default it's False
ShapedBottomBarItem the widget that will be used in the listItems parameters in the ShapedBottomBar widget
This widget contains just four parameters.
required parameters
icon variable of type IconData it represent the icon that the item will get
Other parameters
text the item text, by default it's an empty text.
themeColor color that will be set to the icon. by default it's black
renderWithText by default it's false, this will indicate whether the widget will render the text or not.
Example
this will generate a normale bottom bar without any shape.
In order to create the shaped bottom bar with your own custom shape you need to use the parameter customShape with shape set to ShapeType.CUSTOM, as it shown below: