| 1 | import 'package:flutter/material.dart'; |
| 2 | import 'package:flutter_svg/svg.dart'; |
| 3 | import 'package:openapi/openapi.dart'; |
| 4 | |
| 5 | Widget getAirportIcon(AirportType type) { |
| 6 | if (type == AirportType.balloonport) { |
| 7 | return SvgPicture.asset |
| 8 | "assets/svgs/balloon.svg", |
| 9 | width: 40, |
| 10 | height: 40, |
| 11 | ); |
| 12 | } else if (type == AirportType |
| 13 | return SvgPicture.asset |
| 14 | "assets/svgs/helicopter.svg", |
| 15 | width: 40, |
| 16 | height: 40, |
| 17 | ); |
| 18 | } else if (type == AirportType |
| 19 | type == AirportType.mediumAirport) { |
| 20 | return SvgPicture.asset |
| 21 | "assets/svgs/big-medium-plane.svg", |
| 22 | width: 40, |
| 23 | height: 40, |
| 24 | ); |
| 25 | } else if (type == AirportType |
| 26 | return SvgPicture.asset |
| 27 | "assets/svgs/sea-plane.svg", |
| 28 | width: 40, |
| 29 | height: 40, |
| 30 | ); |
| 31 | } else if (type == AirportType |
| 32 | return SvgPicture.asset |
| 33 | "assets/svgs/small-plane.svg", |
| 34 | width: 40, |
| 35 | height: 40, |
| 36 | ); |
| 37 | } |
| 38 | return SvgPicture.asset |
| 39 | "assets/svgs/small-plane.svg", |
| 40 | width: 40, |
| 41 | height: 40, |
| 42 | ); |
| 43 | } |
| 44 | |