mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
added buttons
This commit is contained in:
@ -194,6 +194,77 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
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)
|
if (selectedProducts.isNotEmpty)
|
||||||
SelectedProductsButtons(
|
SelectedProductsButtons(
|
||||||
products: widget.products ?? [],
|
products: widget.products ?? [],
|
||||||
|
@ -397,5 +397,6 @@ class Assets {
|
|||||||
static const String filterTableIcon = 'assets/icons/filter_table_icon.svg';
|
static const String filterTableIcon = 'assets/icons/filter_table_icon.svg';
|
||||||
static const String ZtoAIcon = 'assets/icons/ztoa_icon.png';
|
static const String ZtoAIcon = 'assets/icons/ztoa_icon.png';
|
||||||
static const String AtoZIcon = 'assets/icons/atoz_icon.png';
|
static const String AtoZIcon = 'assets/icons/atoz_icon.png';
|
||||||
|
static const String link = 'assets/icons/link.svg';
|
||||||
}
|
}
|
||||||
//user_management.svg
|
//user_management.svg
|
||||||
|
Reference in New Issue
Block a user