mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Removed unnecessary SizedBox from TagChipDisplay
.
This commit is contained in:
@ -50,27 +50,25 @@ class TagChipDisplay extends StatelessWidget {
|
|||||||
spaceModel?.subspaceModels?.any((e) => e.tags?.isNotEmpty ?? false) ?? false;
|
spaceModel?.subspaceModels?.any((e) => e.tags?.isNotEmpty ?? false) ?? false;
|
||||||
|
|
||||||
if (hasTags || hasSubspaceTags) {
|
if (hasTags || hasSubspaceTags) {
|
||||||
return SizedBox(
|
return Container(
|
||||||
width: screenWidth * 0.25,
|
width: screenWidth * 0.25,
|
||||||
child: Container(
|
padding: const EdgeInsets.all(8),
|
||||||
padding: const EdgeInsets.all(8),
|
decoration: BoxDecoration(
|
||||||
decoration: BoxDecoration(
|
color: ColorsManager.textFieldGreyColor,
|
||||||
|
borderRadius: BorderRadius.circular(15),
|
||||||
|
border: Border.all(
|
||||||
color: ColorsManager.textFieldGreyColor,
|
color: ColorsManager.textFieldGreyColor,
|
||||||
borderRadius: BorderRadius.circular(15),
|
width: 3,
|
||||||
border: Border.all(
|
|
||||||
color: ColorsManager.textFieldGreyColor,
|
|
||||||
width: 3,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Wrap(
|
|
||||||
spacing: 8,
|
|
||||||
runSpacing: 8,
|
|
||||||
children: [
|
|
||||||
..._groupedTags.entries.map((entry) => _buildChip(context, entry)),
|
|
||||||
_buildEditChip(context),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
child: Wrap(
|
||||||
|
spacing: 8,
|
||||||
|
runSpacing: 8,
|
||||||
|
children: [
|
||||||
|
..._groupedTags.entries.map((entry) => _buildChip(context, entry)),
|
||||||
|
_buildEditChip(context),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return _buildAddDevicesButton(context);
|
return _buildAddDevicesButton(context);
|
||||||
|
Reference in New Issue
Block a user