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';
|
2021-04-05 20:06:54 +00:00
|
|
|
import '../shared/app_colors.dart';
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
class AboutIconButton extends StatelessWidget {
|
|
|
|
AboutIconButton();
|
|
|
|
|
|
|
|
final NavigationService _navigationService = locator<NavigationService>();
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return IconButton(
|
|
|
|
icon: Icon(Icons.help),
|
2021-04-05 20:06:54 +00:00
|
|
|
color: whiteColor,
|
2021-02-02 14:33:23 +00:00
|
|
|
onPressed: () {
|
|
|
|
_navigationService.navigateTo(AboutView.routeName);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|