ButtonFactory class Null safety

A helper to create the buttons and their associated layout.

Implementers

Constructors

ButtonFactory(BuildContext context, ScreenPositioner screen, Controller controller)

Properties

acceleratorTextStyle TextStyle
final
context BuildContext
final
controller Controller
final
enterKeyTextOffset Offset
final
fill Paint
final
fKeyTextOffset Offset
final
fTextOffset Offset
final
fTextSmallLabelStyle TextStyle
final
fTextStyle TextStyle
final
gKeyTextOffset Offset
final
gTextOffset Offset
final
gTextStyle TextStyle
final
gTextStyleForLJ TextStyle
final
hashCode int
The hash code for this object. [...]
read-only, inherited
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-only, inherited
screen ScreenPositioner
final
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(_Buttons 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