changed suffixWidget assignment and moved stepperKeys
This commit is contained in:
@@ -51,10 +51,10 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
children: [
|
children: [
|
||||||
CustomFormRow(
|
CustomFormRow(
|
||||||
key: _stepperKey1,
|
|
||||||
prefixText: 'Cabo-Strafe',
|
prefixText: 'Cabo-Strafe',
|
||||||
prefixIcon: CupertinoIcons.minus_square,
|
prefixIcon: CupertinoIcons.minus_square,
|
||||||
suffixWidget: Stepper(
|
suffixWidget: Stepper(
|
||||||
|
key: _stepperKey1,
|
||||||
initialValue: ConfigService.caboPenalty,
|
initialValue: ConfigService.caboPenalty,
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
maxValue: 50,
|
maxValue: 50,
|
||||||
@@ -68,10 +68,10 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
CustomFormRow(
|
CustomFormRow(
|
||||||
key: _stepperKey2,
|
|
||||||
prefixText: 'Punkte-Limit',
|
prefixText: 'Punkte-Limit',
|
||||||
prefixIcon: FontAwesomeIcons.bullseye,
|
prefixIcon: FontAwesomeIcons.bullseye,
|
||||||
suffixWidget: Stepper(
|
suffixWidget: Stepper(
|
||||||
|
key: _stepperKey2,
|
||||||
initialValue: ConfigService.pointLimit,
|
initialValue: ConfigService.pointLimit,
|
||||||
minValue: 30,
|
minValue: 30,
|
||||||
maxValue: 1000,
|
maxValue: 1000,
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ class _CustomFormRowState extends State<CustomFormRow> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
suffixWidget = widget.suffixWidget ?? const SizedBox.shrink();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
suffixWidget = widget.suffixWidget ?? const SizedBox.shrink();
|
||||||
return CupertinoButton(
|
return CupertinoButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
onPressed: widget.onPressed,
|
onPressed: widget.onPressed,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.4.0+380
|
version: 0.4.0+381
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user