revamp new trip flow
This commit is contained in:
@@ -18,10 +18,6 @@ class _LandmarkCardState extends State<LandmarkCard> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ThemeData theme = Theme.of(context);
|
||||
ButtonStyle buttonStyle = TextButton.styleFrom(
|
||||
backgroundColor: Colors.orange,
|
||||
fixedSize: Size.fromHeight(20)
|
||||
);
|
||||
return Container(
|
||||
height: 160,
|
||||
child: Card(
|
||||
@@ -88,21 +84,21 @@ class _LandmarkCardState extends State<LandmarkCard> {
|
||||
// show the type, the website, and the wikipedia link as buttons/labels in a row
|
||||
children: [
|
||||
TextButton.icon(
|
||||
style: buttonStyle,
|
||||
style: theme.iconButtonTheme.style,
|
||||
onPressed: () {},
|
||||
icon: widget.landmark.type.icon,
|
||||
label: Text(widget.landmark.type.name),
|
||||
),
|
||||
if (widget.landmark.duration != null && widget.landmark.duration!.inMinutes > 0)
|
||||
TextButton.icon(
|
||||
style: buttonStyle,
|
||||
style: theme.iconButtonTheme.style,
|
||||
onPressed: () {},
|
||||
icon: Icon(Icons.hourglass_bottom),
|
||||
label: Text('${widget.landmark.duration!.inMinutes} minutes'),
|
||||
),
|
||||
if (widget.landmark.websiteURL != null)
|
||||
TextButton.icon(
|
||||
style: buttonStyle,
|
||||
style: theme.iconButtonTheme.style,
|
||||
onPressed: () async {
|
||||
// open a browser with the website link
|
||||
await launchUrl(Uri.parse(widget.landmark.websiteURL!));
|
||||
@@ -112,7 +108,7 @@ class _LandmarkCardState extends State<LandmarkCard> {
|
||||
),
|
||||
if (widget.landmark.wikipediaURL != null)
|
||||
TextButton.icon(
|
||||
style: buttonStyle,
|
||||
style: theme.iconButtonTheme.style,
|
||||
onPressed: () async {
|
||||
// open a browser with the wikipedia link
|
||||
await launchUrl(Uri.parse(widget.landmark.wikipediaURL!));
|
||||
|
Reference in New Issue
Block a user