CustomAnimatedBottomBar class
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/1/4 create_time: 16:40 describe: 底部菜单 动画组件 eg:
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomAnimatedBottomBar
- Available extensions
Constructors
-
CustomAnimatedBottomBar.new({Key? key, int selectedIndex = 0, bool showElevation = true, double iconSize = 24, Color? backgroundColor = Colors.white, double itemCornerRadius = 28, double containerHeight = 48, Duration animationDuration = const Duration(milliseconds: 200), MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween, required List<
MyBottomNavigationBarItem> items, required ValueChanged<int> onItemSelected, Curve curve = Curves.easeInOut}) -
const
Properties
- animationDuration → Duration
-
final
- backgroundColor → Color?
-
final
- containerHeight → double
-
final
- curve → Curve
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double
-
final
- itemCornerRadius → double
-
final
-
items
→ List<
MyBottomNavigationBarItem> -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainAxisAlignment → MainAxisAlignment
-
final
-
onItemSelected
→ ValueChanged<
int> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int
-
final
- showElevation → bool
-
final
Methods
-
blurred(
{double blur = 5, Color blurColor = Colors.white, BorderRadius? borderRadius, double colorOpacity = 0.5, Widget? overlay, AlignmentGeometry alignment = Alignment.center}) → Blur -
Available on Widget, provided by the BlurExtension extension
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
frosted(
{double blur = 5, Color frostColor = Colors.white, AlignmentGeometry alignment = Alignment.center, double? height, double? width, double frostOpacity = 0.0, BorderRadius? borderRadius, EdgeInsetsGeometry padding = EdgeInsets.zero}) → Blur -
Available on Widget, provided by the FrostExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited