Modified paddings and text color
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:cabo_counter/utility/custom_theme.dart';
|
||||||
import 'package:flutter/cupertino.dart'; // Für iOS-Style
|
import 'package:flutter/cupertino.dart'; // Für iOS-Style
|
||||||
|
|
||||||
class Stepper extends StatefulWidget {
|
class Stepper extends StatefulWidget {
|
||||||
@@ -34,18 +35,20 @@ class _StepperState extends State<Stepper> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
CupertinoButton(
|
CupertinoButton(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: EdgeInsets.zero,
|
||||||
onPressed: _decrement,
|
onPressed: _decrement,
|
||||||
child: const Icon(CupertinoIcons.minus),
|
child: const Icon(CupertinoIcons.minus),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
child: Text('$_value', style: const TextStyle(fontSize: 18)),
|
child: Text('$_value',
|
||||||
|
style: TextStyle(fontSize: 18, color: CustomTheme.white)),
|
||||||
),
|
),
|
||||||
CupertinoButton(
|
CupertinoButton(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: EdgeInsets.zero,
|
||||||
onPressed: _increment,
|
onPressed: _increment,
|
||||||
child: const Icon(CupertinoIcons.add),
|
child: const Icon(CupertinoIcons.add),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user