From 232529eb7ff4db4fcb1ba5c09ddd5a125b3a42d6 Mon Sep 17 00:00:00 2001 From: sidhdhi canopas <122426509+cp-sidhdhi-p@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:33:38 +0530 Subject: [PATCH] change primary button height (#54) --- khelo/lib/ui/flow/matches/add_match/add_match_view_model.dart | 4 ++-- style/lib/button/primary_button.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/khelo/lib/ui/flow/matches/add_match/add_match_view_model.dart b/khelo/lib/ui/flow/matches/add_match/add_match_view_model.dart index 50e014f4..dfe26f7f 100644 --- a/khelo/lib/ui/flow/matches/add_match/add_match_view_model.dart +++ b/khelo/lib/ui/flow/matches/add_match/add_match_view_model.dart @@ -29,8 +29,8 @@ class AddMatchViewNotifier extends StateNotifier { AddMatchViewNotifier(this._matchService, String? userId) : super(AddMatchViewState( - totalOverController: TextEditingController(), - overPerBowlerController: TextEditingController(), + totalOverController: TextEditingController(text: "10"), + overPerBowlerController: TextEditingController(text: "2"), cityController: TextEditingController(), groundController: TextEditingController(), matchTime: DateTime.now(), diff --git a/style/lib/button/primary_button.dart b/style/lib/button/primary_button.dart index beef8d89..813edfe4 100644 --- a/style/lib/button/primary_button.dart +++ b/style/lib/button/primary_button.dart @@ -51,8 +51,8 @@ class PrimaryButton extends StatelessWidget { enabled: tappable, child: Container( width: expanded ? double.infinity : null, - constraints: BoxConstraints( - minHeight: expanded ? 48 : 36, + constraints: const BoxConstraints( + minHeight: 48, minWidth: 88, ), padding: edgeInsets,