better visual coherence
This commit is contained in:
@@ -4,13 +4,13 @@ import 'dart:convert';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
LandmarkType sightseeing = LandmarkType(name: 'sightseeing');
|
||||
LandmarkType nature = LandmarkType(name: 'nature');
|
||||
LandmarkType shopping = LandmarkType(name: 'shopping');
|
||||
LandmarkType typeSightseeing = LandmarkType(name: 'sightseeing');
|
||||
LandmarkType typeNature = LandmarkType(name: 'nature');
|
||||
LandmarkType typeShopping = LandmarkType(name: 'shopping');
|
||||
// LandmarkType museum = LandmarkType(name: 'Museum');
|
||||
// LandmarkType restaurant = LandmarkType(name: 'Restaurant');
|
||||
LandmarkType start = LandmarkType(name: 'start');
|
||||
LandmarkType finish = LandmarkType(name: 'finish');
|
||||
LandmarkType typeStart = LandmarkType(name: 'start');
|
||||
LandmarkType typeFinish = LandmarkType(name: 'finish');
|
||||
|
||||
|
||||
final class Landmark extends LinkedListEntry<Landmark>{
|
||||
@@ -130,22 +130,22 @@ class LandmarkType {
|
||||
LandmarkType({required this.name, this.icon = const Icon(Icons.location_on)}) {
|
||||
switch (name) {
|
||||
case 'sightseeing':
|
||||
icon = Icon(Icons.church);
|
||||
icon = const Icon(Icons.church);
|
||||
break;
|
||||
case 'nature':
|
||||
icon = Icon(Icons.eco);
|
||||
icon = const Icon(Icons.eco);
|
||||
break;
|
||||
case 'shopping':
|
||||
icon = Icon(Icons.shopping_cart);
|
||||
icon = const Icon(Icons.shopping_cart);
|
||||
break;
|
||||
case 'start':
|
||||
icon = Icon(Icons.play_arrow);
|
||||
icon = const Icon(Icons.play_arrow);
|
||||
break;
|
||||
case 'finish':
|
||||
icon = Icon(Icons.flag);
|
||||
icon = const Icon(Icons.flag);
|
||||
break;
|
||||
default:
|
||||
icon = Icon(Icons.location_on);
|
||||
icon = const Icon(Icons.location_on);
|
||||
}
|
||||
}
|
||||
@override
|
||||
|
@@ -1,3 +1,4 @@
|
||||
import 'package:anyway/structs/landmark.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
@@ -28,27 +29,27 @@ class UserPreferences {
|
||||
slug: "sightseeing",
|
||||
description: "How much do you like sightseeing?",
|
||||
value: 0,
|
||||
icon: Icon(Icons.church),
|
||||
icon: typeSightseeing.icon,
|
||||
);
|
||||
SinglePreference shopping = SinglePreference(
|
||||
name: "Shopping",
|
||||
slug: "shopping",
|
||||
description: "How much do you like shopping?",
|
||||
value: 0,
|
||||
icon: Icon(Icons.shopping_bag),
|
||||
icon: typeShopping.icon,
|
||||
);
|
||||
SinglePreference nature = SinglePreference(
|
||||
name: "Nature",
|
||||
slug: "nature",
|
||||
description: "How much do you like nature?",
|
||||
value: 0,
|
||||
icon: Icon(Icons.landscape),
|
||||
icon: typeNature.icon,
|
||||
);
|
||||
|
||||
SinglePreference maxTime = SinglePreference(
|
||||
name: "Trip duration",
|
||||
slug: "duration",
|
||||
description: "How long do you want your trip to be?",
|
||||
description: "How long should your trip be?",
|
||||
value: 30,
|
||||
minVal: 30,
|
||||
maxVal: 720,
|
||||
|
Reference in New Issue
Block a user