FastCalculatorPageLayout<B extends FastCalculatorBloc<FastCalculatorBlocEvent<FastCalculatorResults> , FastCalculatorBlocState<FastCalculatorFields, FastCalculatorResults> , FastCalculatorResults> , R extends FastCalculatorResults> class
A widget that provides a layout for a fast calculator app.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FastCalculatorPageLayout
Constructors
-
FastCalculatorPageLayout({Key? key, required B calculatorBloc, required WidgetBuilder resultsBuilder, required WidgetBuilder fieldsBuilder, bool canEnableExportToPdfInteractions(FastCalculatorBlocState<
FastCalculatorFields, FastCalculatorResults> state)?, bool requestFullApp = false, bool showRefreshIcon = true, bool showClearIcon = true, bool showInfoIcon = false, List<Widget> ? calculatorActions, String? resultsTitleText, String? fieldsTitleText, List<Widget> ? resultsActions, WidgetBuilder? dividerBuilder, WidgetBuilder? headerBuilder, String? pageTitleText, Widget? refreshIcon, Widget? backButton, Widget? exportToPdfIcon, Widget? clearIcon, Widget? infoIcon, Widget? leading, VoidCallback? onInfo, WidgetBuilder? breakdownBuilder, String? breakdownTitleText, List<Widget> ? breakdownActions, ValueNotifier<bool> ? breadownViewNotifier, VoidCallback? onClear}) -
const
Properties
- backButton → Widget?
-
A widget that represents the back button.
final
-
breadownViewNotifier
→ ValueNotifier<
bool> ? -
final
-
breakdownActions
→ List<
Widget> ? -
A list of actions that can be performed on the breakdown section.
final
- breakdownBuilder → WidgetBuilder?
-
A builder method used to build the UI for displaying the breakdown of
the calculations.
final
- breakdownTitleText → String?
-
A string that represents the title text for the breakdown section.
If null, the default value is used.
final
-
calculatorActions
→ List<
Widget> ? -
A list of actions that can be performed on the calculator.
final
- calculatorBloc → B
-
The calculator bloc used by the calculator page.
final
-
canEnableExportToPdfInteractions
→ bool Function(FastCalculatorBlocState<
FastCalculatorFields, FastCalculatorResults> state)? -
final
- clearIcon → Widget?
-
A widget that represents the clear icon.
final
- dividerBuilder → WidgetBuilder?
-
A builder method used to build the divider widget.
final
- exportToPdfIcon → Widget?
-
A widget that represents the exportToPdf icon.
final
- fieldsBuilder → WidgetBuilder
-
A builder method used to build the UI for entering input fields and
calculations.
final
- fieldsTitleText → String?
-
A string that represents the title text for the input fields section.
final
-
A builder method used to build the footer widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerBuilder → WidgetBuilder?
-
A builder method used to build the header widget.
final
- infoIcon → Widget?
-
A widget that represents the info icon.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
A widget that represents the leading widget.
final
- onClear → VoidCallback?
-
final
- onInfo → VoidCallback?
-
A callback function that is triggered when the info icon is pressed.
final
- pageTitleText → String?
-
A string that represents the title text for the calculator page.
final
- refreshIcon → Widget?
-
A widget that represents the refresh icon.
final
- requestFullApp → bool
-
A boolean that determines whether the calculator page should request
the full app or not.
final
-
resultsActions
→ List<
Widget> ? -
A list of actions that can be performed on the results section.
final
- resultsBuilder → WidgetBuilder
-
A builder method used to build the UI for displaying the results of
the calculations.
final
- resultsTitleText → String?
-
A string that represents the title text for the results section.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showClearIcon → bool
-
A boolean that determines whether the clear icon should be displayed or
not.
final
- showInfoIcon → bool
-
A boolean that determines whether the info icon should be displayed or
not.
final
- showRefreshIcon → bool
-
A boolean that determines whether the refresh icon should be displayed or
not.
final
Methods
-
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
-
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