formatted all files.

This commit is contained in:
Faris Armoush
2025-06-12 15:33:32 +03:00
parent 29959f567e
commit 04250ebc98
474 changed files with 5425 additions and 4338 deletions

View File

@ -18,8 +18,10 @@ class SpaceModelPage extends StatelessWidget {
final List<Tag> projectTags;
const SpaceModelPage(
{Key? key, this.products, this.onSpaceModelsUpdated, required this.projectTags})
: super(key: key);
{super.key,
this.products,
this.onSpaceModelsUpdated,
required this.projectTags});
@override
Widget build(BuildContext context) {
@ -77,7 +79,8 @@ class SpaceModelPage extends StatelessWidget {
}
// Render existing space model
final model = spaceModels[index];
final otherModel = List<String>.from(allSpaceModelNames);
final otherModel =
List<String>.from(allSpaceModelNames);
otherModel.remove(model.modelName);
return GestureDetector(
onTap: () {
@ -115,8 +118,10 @@ class SpaceModelPage extends StatelessWidget {
return Center(
child: Text(
'Error: ${state.message}',
style:
Theme.of(context).textTheme.bodySmall?.copyWith(color: ColorsManager.warningRed),
style: Theme.of(context)
.textTheme
.bodySmall
?.copyWith(color: ColorsManager.warningRed),
),
);
}
@ -126,7 +131,7 @@ class SpaceModelPage extends StatelessWidget {
}
double _calculateChildAspectRatio(BuildContext context) {
double screenWidth = MediaQuery.of(context).size.width;
final screenWidth = MediaQuery.of(context).size.width;
if (screenWidth > 1600) {
return 1.5; // Decrease to make cards taller
}
@ -140,7 +145,7 @@ class SpaceModelPage extends StatelessWidget {
}
List<String> _getAllTagValues(List<SpaceTemplateModel> spaceModels) {
final List<String> allTags = [];
final allTags = <String>[];
for (final spaceModel in spaceModels) {
if (spaceModel.tags != null) {
allTags.addAll(spaceModel.listAllTagValues());
@ -150,7 +155,7 @@ class SpaceModelPage extends StatelessWidget {
}
List<String> _getAllSpaceModelName(List<SpaceTemplateModel> spaceModels) {
final List<String> names = [];
final names = <String>[];
for (final spaceModel in spaceModels) {
names.add(spaceModel.modelName);
}