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
|
||||
|
Reference in New Issue
Block a user