IndexBarOptions class
IndexBar options.
Constructors
-
IndexBarOptions({bool needRebuild = false, bool ignoreDragCancel = false, bool hapticFeedback = false, Color? color, Color? downColor, Decoration? decoration, Decoration? downDecoration, TextStyle textStyle = const TextStyle(fontSize: 12, color: Color(0xFF666666)), TextStyle? downTextStyle, TextStyle? selectTextStyle, Decoration? downItemDecoration, Decoration? selectItemDecoration, double indexHintWidth = 72, double indexHintHeight = 72, Decoration indexHintDecoration = const BoxDecoration(color: Colors.black87, shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(6))), TextStyle indexHintTextStyle = const TextStyle(fontSize: 24.0, color: Colors.white), Alignment indexHintChildAlignment = Alignment.center, Alignment indexHintAlignment = Alignment.center, Offset? indexHintPosition, Offset indexHintOffset = Offset.zero, List<
String> localImages = const []}) -
Creates IndexBar options.
Examples.
needReBuild = true
ignoreDragCancel = true
color = Colors.transparent
downColor = Color(0xFFEEEEEE)
decoration
downDecoration
textStyle = TextStyle(fontSize: 12, color: Color(0xFF666666))
downTextStyle = TextStyle(fontSize: 12, color: Colors.white)
selectTextStyle = TextStyle(fontSize: 12, color: Colors.white)
downItemDecoration = BoxDecoration(shape: BoxShape.circle, color: Colors.blueAccent)
selectItemDecoration = BoxDecoration(shape: BoxShape.circle, color: Colors.blueAccent)
indexHintWidth = 72
indexHintHeight = 72
indexHintDecoration = BoxDecoration(color: Colors.black87, shape: BoxShape.rectangle, borderRadius: BorderRadius.all(Radius.circular(6)),)
indexHintTextStyle = TextStyle(fontSize: 24.0, color: Colors.white)
indexHintChildAlignment = Alignment.center
indexHintAlignment = Alignment.center
indexHintPosition
indexHintOffset
localImages
const
Properties
- color → Color?
-
IndexBar background color.
final
- decoration → Decoration?
-
IndexBar decoration.
final
- downColor → Color?
-
IndexBar down background color.
final
- downDecoration → Decoration?
-
IndexBar down decoration.
final
- downItemDecoration → Decoration?
-
IndexBar down item decoration.
final
- downTextStyle → TextStyle?
-
IndexBar down textStyle.
final
- hapticFeedback → bool
-
Haptic feedback.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreDragCancel → bool
-
Ignore DragCancel.
final
- indexHintAlignment → Alignment
-
Index hint alignment.
final
- indexHintChildAlignment → Alignment
-
Index hint child alignment.
final
- indexHintDecoration → Decoration
-
Index hint decoration.
final
- indexHintHeight → double
-
Index hint height.
final
- indexHintOffset → Offset
-
Index hint offset.
final
- indexHintPosition → Offset?
-
Index hint position.
final
- indexHintTextStyle → TextStyle
-
Index hint textStyle.
final
- indexHintWidth → double
-
Index hint width.
final
-
localImages
→ List<
String> -
local images.
final
- needRebuild → bool
-
need to rebuild.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectItemDecoration → Decoration?
-
IndexBar select item decoration.
final
- selectTextStyle → TextStyle?
-
IndexBar select textStyle.
final
- textStyle → TextStyle
-
IndexBar textStyle.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited