PromptFooterBar class
A footer bar for inline prompt panels and dialog bottoms.
Displays a row of ActionButtons on the left and KeyHint shortcut labels on the right, with a distinct background color to visually separate it from the content area above.
Uses DialogThemeData.footerBackground for the background color, falling back to Theme.resolvedSurfaceVariant.
PromptFooterBar(
actions: [
ActionButton(label: 'Allow once', isSelected: true, onTap: ...),
ActionButton(label: 'Reject', onTap: ...),
],
hints: [
(key: '⇆', description: 'select'),
(key: 'enter', description: 'confirm'),
],
)
- Inheritance
-
- Object
- Widget
- StatelessWidget
- PromptFooterBar
Constructors
Properties
-
actions
→ List<
Widget> -
Action buttons displayed on the left side.
final
- background → Color?
-
Background color override.
Defaults to DialogThemeData.footerBackground or
Theme.resolvedSurfaceVariant.
final
-
children
→ List<
Widget> -
Child widgets that receive forwarded messages.
no setterinherited
- debugRenderObjectPassthrough → bool
-
Whether this widget is intentionally transparent to render-object layouts.
no setterinherited
- focusable → bool
-
Whether this widget can receive keyboard focus.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hints
→ List<
({String description, String key})> -
Keyboard hint pairs displayed on the right side.
Each record has a
keylabel and adescription.final - id → String
-
Unique identifier for this widget.
no setterinherited
- key → Key?
-
Key for preserving widget identity.
finalinherited
- padding → EdgeInsets?
-
Padding inside the footer bar.
Defaults to left: 2, right: 3, top: 1, bottom: 1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → Theme
-
Access the current theme.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the UI represented by this widget.
override
-
buildCachedView<
T> (T builder(), Object? cacheKey) → T -
Returns a cached view if the cache key matches.
inherited
-
handleInit(
) → Cmd? -
Override this instead of init for widget-specific initialization.
inherited
-
handleIntercept(
Msg msg) → (Widget, Cmd?) -
Override this to handle messages before they reach children.
inherited
-
handleUpdate(
Msg msg) → (Widget, Cmd?) -
Override this to handle messages specific to this widget.
inherited
-
init(
) → Cmd? -
Called once when the widget is first mounted.
inherited
-
invalidateCachedView(
) → void -
Clears any cached view for this widget.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → (Model, Cmd?) -
Handles messages by forwarding to children then calling handleUpdate.
inherited
-
view(
) → Object -
Renders the widget to a string or View.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited