22 lines
553 B
Dart
22 lines
553 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),
|
||
|
color: Colors.white,
|
||
|
onPressed: () {
|
||
|
_navigationService.navigateTo(AboutView.routeName);
|
||
|
});
|
||
|
}
|
||
|
}
|