removed unnecessary BuildContext from TagChipDisplay constructor, sorted its properies, and converted to using super.key.

This commit is contained in:
Faris Armoush
2025-04-15 15:02:58 +03:00
parent 748c67fd8b
commit 117f6190dd
2 changed files with 13 additions and 14 deletions

View File

@ -145,7 +145,6 @@ class CreateSpaceModelDialog extends StatelessWidget {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
TagChipDisplay( TagChipDisplay(
context,
screenWidth: screenWidth, screenWidth: screenWidth,
spaceModel: updatedSpaceModel, spaceModel: updatedSpaceModel,
products: products, products: products,

View File

@ -23,19 +23,19 @@ class TagChipDisplay extends StatelessWidget {
final List<SpaceTemplateModel>? allSpaceModels; final List<SpaceTemplateModel>? allSpaceModels;
final List<Tag> projectTags; final List<Tag> projectTags;
const TagChipDisplay(BuildContext context, const TagChipDisplay({
{Key? key, required this.screenWidth,
required this.screenWidth, required this.spaceModel,
required this.spaceModel, required this.products,
required this.products, required this.subspaces,
required this.subspaces, required this.allTags,
required this.allTags, required this.spaceNameController,
required this.spaceNameController, required this.projectTags,
this.pageContext, this.pageContext,
this.otherSpaceModels, this.otherSpaceModels,
this.allSpaceModels, this.allSpaceModels,
required this.projectTags}) super.key,
: super(key: key); });
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {