From 80290efa0b1d0046b0c18bea101dab4a82c05b83 Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Tue, 18 Nov 2025 20:37:41 +0100 Subject: [PATCH] rename FullWidthButton to CustomWidthButton --- .../views/main_menu/create_group/create_group_view.dart | 4 ++-- lib/presentation/views/main_menu/groups_view.dart | 4 ++-- .../{full_width_button.dart => custom_width_button.dart} | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename lib/presentation/widgets/{full_width_button.dart => custom_width_button.dart} (93%) diff --git a/lib/presentation/views/main_menu/create_group/create_group_view.dart b/lib/presentation/views/main_menu/create_group/create_group_view.dart index 1a84956..8a89501 100644 --- a/lib/presentation/views/main_menu/create_group/create_group_view.dart +++ b/lib/presentation/views/main_menu/create_group/create_group_view.dart @@ -4,7 +4,7 @@ import 'package:game_tracker/data/db/database.dart'; import 'package:game_tracker/data/dto/group.dart'; import 'package:game_tracker/data/dto/player.dart'; import 'package:game_tracker/presentation/widgets/custom_search_bar.dart'; -import 'package:game_tracker/presentation/widgets/full_width_button.dart'; +import 'package:game_tracker/presentation/widgets/custom_width_button.dart'; import 'package:game_tracker/presentation/widgets/text_input_field.dart'; import 'package:game_tracker/presentation/widgets/tiles/text_icon_list_tile.dart'; import 'package:game_tracker/presentation/widgets/tiles/text_icon_tile.dart'; @@ -263,7 +263,7 @@ class _CreateGroupViewState extends State { ), ), ), - FullWidthButton( + CustomWidthButton( text: "Create group", infillColor: CustomTheme.primaryColor, borderColor: CustomTheme.primaryColor, diff --git a/lib/presentation/views/main_menu/groups_view.dart b/lib/presentation/views/main_menu/groups_view.dart index bdb3d4a..200f1d0 100644 --- a/lib/presentation/views/main_menu/groups_view.dart +++ b/lib/presentation/views/main_menu/groups_view.dart @@ -4,7 +4,7 @@ import 'package:game_tracker/data/db/database.dart'; import 'package:game_tracker/data/dto/group.dart'; import 'package:game_tracker/data/dto/player.dart'; import 'package:game_tracker/presentation/views/main_menu/create_group/create_group_view.dart'; -import 'package:game_tracker/presentation/widgets/full_width_button.dart'; +import 'package:game_tracker/presentation/widgets/custom_width_button.dart'; import 'package:game_tracker/presentation/widgets/tiles/group_tile.dart'; import 'package:game_tracker/presentation/widgets/top_centered_message.dart'; import 'package:provider/provider.dart'; @@ -105,7 +105,7 @@ class _GroupsViewState extends State { Positioned( bottom: 80, - child: FullWidthButton( + child: CustomWidthButton( text: 'Create Group', infillColor: CustomTheme.primaryColor, borderColor: CustomTheme.primaryColor, diff --git a/lib/presentation/widgets/full_width_button.dart b/lib/presentation/widgets/custom_width_button.dart similarity index 93% rename from lib/presentation/widgets/full_width_button.dart rename to lib/presentation/widgets/custom_width_button.dart index fe9913c..b336a79 100644 --- a/lib/presentation/widgets/full_width_button.dart +++ b/lib/presentation/widgets/custom_width_button.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -class FullWidthButton extends StatelessWidget { - const FullWidthButton({ +class CustomWidthButton extends StatelessWidget { + const CustomWidthButton({ super.key, required this.text, required this.borderColor,