ButtonFactory class Null safety

A helper to create the buttons and their associated layout.

Implementers

Constructors

ButtonFactory(BuildContext context, ScreenPositioner screen, RealController controller)

Properties

acceleratorTextStyle → TextStyle
final
context → BuildContext
final
controller → RealController
final
enterKeyTextOffset → Offset
final
fill → Paint
final
fKeyTextOffset → Offset
final
fTextOffset → Offset
read-only
fTextSmallLabelStyle → TextStyle
latefinal
fTextStyle → TextStyle
latefinal
gKeyTextOffset → Offset
final
gTextOffset → Offset
final
gTextStyle → TextStyle
latefinal
gTextStyleForLJ → TextStyle
latefinal
hashCode → int
The hash code for this object.
read-onlyinherited
height → double
final
innerBorder → RRect
final
keyTextOffset → Offset
final
keyTextStyle → TextStyle
final
lowerSurface → RRect
final
numColumns → int
read-only
numRows → int
read-only
onKeyTextOffset → Offset
final
outerBorder → RRect
final
padRight → double
final
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
screen → ScreenPositioner
final
settings → Settings
read-only
shiftKeyTextStyle → TextStyle
final
specialButtonTextStyle → TextStyle
final
upperSurface → RRect
final
width → double
final

Methods

addUpperGoldLabels(List<Widget> result, Rect pos, {required double th, required double tw, required double bh, required double bw}) → double
buildButtons(Rect pos) → List<Widget>
buttonLayout(ButtonLayout buttons) → List<List<CalculatorButton?>>
enterPos(Rect pos, {required double th, required double tw, required double bh, required double bw}) → Rect
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
totalButtonHeight(double height, double buttonHeight) → double

Operators

operator ==(Object other) → bool
The equality operator.
inherited