add notification, fix appbar,fix style subscription

This commit is contained in:
2026-05-21 12:19:06 +03:00
parent e7d2154d98
commit c996d0847f
60 changed files with 774 additions and 365 deletions

View File

@@ -696,13 +696,13 @@ class _MapScreenState extends State<MapScreen> {
children: [
_RoundIconButton(
icon: Icons.notifications_sharp,
onPressed: _onNotificationTap,
onPressed: () => context.push("/home/notifications"),
),
const SizedBox(height: 12),
_RoundIconButton(
icon: Icons.directions_run,
_RoundButton(
imagePath: 'assets/icons/scooter_placemark.png',
onPressed: () => context.push("/home/current-rides-sheet"),
),
)
],
),
),
@@ -810,6 +810,40 @@ class _RoundIconButton extends StatelessWidget {
}
}
class _RoundButton extends StatelessWidget {
final String imagePath;
final VoidCallback onPressed;
const _RoundButton({
required this.imagePath,
required this.onPressed,
});
@override
Widget build(BuildContext context) {
return Container(
width: 40,
height: 40,
decoration: BoxDecoration(
color: AppColors.darkBlue,
borderRadius: BorderRadius.circular(12),
),
child: GestureDetector(
onTap: onPressed,
child: Center(
child: Image.asset(
imagePath,
width: 20,
height: 20,
fit: BoxFit.contain,
color: Colors.white,
),
),
),
);
}
}
class _CircleIconButton extends StatelessWidget {
final IconData icon;
final VoidCallback onPressed;