Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
map_overlay_buttons.dart
Go to the documentation of this file.
1import 'package:easy_localization/easy_localization.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
4import 'package:fluentui_system_icons/fluentui_system_icons.dart';
5
6import '../../today_schedule_screen/widgets/map_button.dart';
7
8class MapOverlayButtons extends StatelessWidget {
9 final VoidCallback onSearchPressed;
10 final VoidCallback onSavedLocationsPressed;
11
13 super.key,
14 required this.onSearchPressed,
15 required this.onSavedLocationsPressed,
16 });
17
18 @override
19 Widget build(BuildContext context) {
20 return Column(
21 mainAxisSize: MainAxisSize.min,
22 children: [
24 icon: Icons.search,
25 tooltip: 'scheduling.search_for_location'.tr(),
27 ),
28 SizedBox(height: 10.h),
30 icon: FluentIcons.bookmark_16_regular,
31 tooltip: 'scheduling.saved_locations'.tr(),
33 ),
34 ],
35 );
36 }
37}
final VoidCallback onPressed
final VoidCallback onSearchPressed
final VoidCallback onSavedLocationsPressed
override Widget build(BuildContext context)
const MapOverlayButtons({ super.key, required this.onSearchPressed, required this.onSavedLocationsPressed, })
const MapButton({ super.key, required this.icon, required this.onPressed, this.tooltip, })
final String tooltip
style SizedBox(height:2.h)
style Column(crossAxisAlignment:CrossAxisAlignment.end, children:[Container(padding:EdgeInsets.symmetric(horizontal:8.w, vertical:4.h), decoration:BoxDecoration(color:ColorPalette.tiffanyBlue.withValues(alpha:0.1), borderRadius:BorderRadius.circular(12),), child:Text(collection.type ?? '', style:Theme.of(context).textTheme.bodySmall?.copyWith(color:ColorPalette.tiffanyBlue, fontWeight:FontWeight.bold,),),),],)