Renamed Stepper to CustomStepper
This commit is contained in:
@@ -2,7 +2,7 @@ import 'package:cabo_counter/core/constants.dart';
|
||||
import 'package:cabo_counter/core/custom_theme.dart';
|
||||
import 'package:cabo_counter/l10n/generated/app_localizations.dart';
|
||||
import 'package:cabo_counter/presentation/widgets/custom_form_row.dart';
|
||||
import 'package:cabo_counter/presentation/widgets/stepper.dart';
|
||||
import 'package:cabo_counter/presentation/widgets/custom_stepper.dart';
|
||||
import 'package:cabo_counter/services/config_service.dart';
|
||||
import 'package:cabo_counter/services/local_storage_service.dart';
|
||||
import 'package:cabo_counter/services/version_service.dart';
|
||||
@@ -54,7 +54,7 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
CustomFormRow(
|
||||
prefixText: 'Cabo-Strafe',
|
||||
prefixIcon: CupertinoIcons.bolt_fill,
|
||||
suffixWidget: Stepper(
|
||||
suffixWidget: CustomStepper(
|
||||
key: _stepperKey1,
|
||||
initialValue: ConfigService.caboPenalty,
|
||||
minValue: 0,
|
||||
@@ -71,7 +71,7 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
CustomFormRow(
|
||||
prefixText: 'Punkte-Limit',
|
||||
prefixIcon: FontAwesomeIcons.bullseye,
|
||||
suffixWidget: Stepper(
|
||||
suffixWidget: CustomStepper(
|
||||
key: _stepperKey2,
|
||||
initialValue: ConfigService.pointLimit,
|
||||
minValue: 30,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:cabo_counter/core/custom_theme.dart';
|
||||
import 'package:cabo_counter/presentation/widgets/stepper.dart';
|
||||
import 'package:cabo_counter/presentation/widgets/custom_stepper.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class CustomFormRow extends StatefulWidget {
|
||||
@@ -43,7 +43,7 @@ class _CustomFormRowState extends State<CustomFormRow> {
|
||||
Text(widget.prefixText),
|
||||
],
|
||||
),
|
||||
padding: suffixWidget is Stepper
|
||||
padding: suffixWidget is CustomStepper
|
||||
? const EdgeInsets.fromLTRB(15, 0, 0, 0)
|
||||
: const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
|
||||
child: suffixWidget,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import 'package:cabo_counter/core/custom_theme.dart';
|
||||
import 'package:flutter/cupertino.dart'; // Für iOS-Style
|
||||
|
||||
class Stepper extends StatefulWidget {
|
||||
class CustomStepper extends StatefulWidget {
|
||||
final int minValue;
|
||||
final int maxValue;
|
||||
final int? initialValue;
|
||||
final int step;
|
||||
final ValueChanged<int> onChanged;
|
||||
const Stepper({
|
||||
const CustomStepper({
|
||||
super.key,
|
||||
required this.minValue,
|
||||
required this.maxValue,
|
||||
@@ -18,10 +18,10 @@ class Stepper extends StatefulWidget {
|
||||
|
||||
@override
|
||||
// ignore: library_private_types_in_public_api
|
||||
_StepperState createState() => _StepperState();
|
||||
_CustomStepperState createState() => _CustomStepperState();
|
||||
}
|
||||
|
||||
class _StepperState extends State<Stepper> {
|
||||
class _CustomStepperState extends State<CustomStepper> {
|
||||
late int _value;
|
||||
|
||||
@override
|
||||
Reference in New Issue
Block a user