fbmobile/lib/ui/widgets/about_iconbutton.dart
Varakh 2e7778926a
All checks were successful
continuous-integration/drone/tag Build is passing
Release 1.5.1+17 #noissue
2022-12-16 22:53:59 +01:00

20 lines
524 B
Dart

import 'package:flutter/material.dart';
import '../../core/services/navigation_service.dart';
import '../../locator.dart';
import '../../ui/views/about_view.dart';
class AboutIconButton extends StatelessWidget {
AboutIconButton();
final NavigationService _navigationService = locator<NavigationService>();
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(Icons.help),
onPressed: () {
_navigationService.navigateTo(AboutView.routeName);
});
}
}