2021-02-02 14:33:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import '../../core/services/navigation_service.dart';
|
|
|
|
import '../../locator.dart';
|
|
|
|
import '../../ui/views/about_view.dart';
|
|
|
|
|
|
|
|
class AboutIconButton extends StatelessWidget {
|
2023-01-04 20:17:54 +00:00
|
|
|
AboutIconButton({super.key});
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
final NavigationService _navigationService = locator<NavigationService>();
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return IconButton(
|
2023-01-04 20:17:54 +00:00
|
|
|
icon: const Icon(Icons.help),
|
2021-02-02 14:33:23 +00:00
|
|
|
onPressed: () {
|
|
|
|
_navigationService.navigateTo(AboutView.routeName);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|