From a7e75548133ff007a8e79f1cc7270a1fe71c78c6 Mon Sep 17 00:00:00 2001 From: hannathkadher Date: Thu, 9 Jan 2025 16:39:46 +0400 Subject: [PATCH] added buttons --- .../widgets/dialogs/create_space_dialog.dart | 71 +++++++++++++++++++ lib/utils/constants/assets.dart | 1 + 2 files changed, 72 insertions(+) diff --git a/lib/pages/spaces_management/all_spaces/widgets/dialogs/create_space_dialog.dart b/lib/pages/spaces_management/all_spaces/widgets/dialogs/create_space_dialog.dart index 1ad8f52c..25c3d5b3 100644 --- a/lib/pages/spaces_management/all_spaces/widgets/dialogs/create_space_dialog.dart +++ b/lib/pages/spaces_management/all_spaces/widgets/dialogs/create_space_dialog.dart @@ -194,6 +194,77 @@ class CreateSpaceDialogState extends State { ), ), const SizedBox(height: 16), + DefaultButton( + onPressed: () {}, + backgroundColor: ColorsManager.textFieldGreyColor, + foregroundColor: Colors.black, + borderColor: ColorsManager.neutralGray, + borderRadius: 16.0, + padding: 10.0, // Reduced padding for smaller size + child: Align( + alignment: Alignment.centerLeft, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Padding( + padding: const EdgeInsets.only(left: 6.0), + child: SvgPicture.asset( + Assets.addIcon, + width: screenWidth * + 0.015, // Adjust icon size + height: screenWidth * 0.015, + ), + ), + const SizedBox(width: 3), + Flexible( + child: Text( + 'Link a space model', + overflow: TextOverflow + .ellipsis, // Prevent overflow + style: Theme.of(context) + .textTheme + .bodyMedium, + ), + ), + ], + ), + )), + const SizedBox(height: 30), + DefaultButton( + onPressed: () {}, + backgroundColor: ColorsManager.textFieldGreyColor, + foregroundColor: Colors.black, + borderColor: ColorsManager.neutralGray, + borderRadius: 16.0, + padding: 10.0, // Reduced padding for smaller size + child: Align( + alignment: Alignment.centerLeft, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Padding( + padding: const EdgeInsets.only(left: 6.0), + child: SvgPicture.asset( + Assets.addIcon, + width: screenWidth * + 0.015, // Adjust icon size + height: screenWidth * 0.015, + ), + ), + const SizedBox(width: 3), + Flexible( + child: Text( + 'Create sub space', + overflow: TextOverflow + .ellipsis, // Prevent overflow + style: Theme.of(context) + .textTheme + .bodyMedium, + ), + ), + ], + ), + )), if (selectedProducts.isNotEmpty) SelectedProductsButtons( products: widget.products ?? [], diff --git a/lib/utils/constants/assets.dart b/lib/utils/constants/assets.dart index 1f4074c4..a9deb3c7 100644 --- a/lib/utils/constants/assets.dart +++ b/lib/utils/constants/assets.dart @@ -397,5 +397,6 @@ class Assets { static const String filterTableIcon = 'assets/icons/filter_table_icon.svg'; static const String ZtoAIcon = 'assets/icons/ztoa_icon.png'; static const String AtoZIcon = 'assets/icons/atoz_icon.png'; + static const String link = 'assets/icons/link.svg'; } //user_management.svg