mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
remove screenWidth parameter from TagChipDisplay
and use context.screenWidth
instead.
This commit is contained in:
@ -145,7 +145,6 @@ class CreateSpaceModelDialog extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
TagChipDisplay(
|
||||
screenWidth: screenWidth,
|
||||
spaceModel: updatedSpaceModel,
|
||||
products: products,
|
||||
subspaces: subspaces,
|
||||
|
@ -15,7 +15,6 @@ import 'package:syncrow_web/utils/extension/build_context_x.dart';
|
||||
|
||||
class TagChipDisplay extends StatelessWidget {
|
||||
const TagChipDisplay({
|
||||
required this.screenWidth,
|
||||
required this.spaceModel,
|
||||
required this.products,
|
||||
required this.subspaces,
|
||||
@ -28,7 +27,6 @@ class TagChipDisplay extends StatelessWidget {
|
||||
super.key,
|
||||
});
|
||||
|
||||
final double screenWidth;
|
||||
final SpaceTemplateModel? spaceModel;
|
||||
final List<ProductModel>? products;
|
||||
final List<SubspaceTemplateModel>? subspaces;
|
||||
@ -56,7 +54,7 @@ class TagChipDisplay extends StatelessWidget {
|
||||
|
||||
if (hasTags || hasSubspaceTags) {
|
||||
return Container(
|
||||
width: screenWidth * 0.25,
|
||||
width: context.screenWidth * 0.25,
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: ColorsManager.textFieldGreyColor,
|
||||
|
Reference in New Issue
Block a user