fbmobile/lib/ui/widgets/about_iconbutton.dart

23 lines
587 B
Dart
Raw Normal View History

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';
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),
color: whiteColor,
2021-02-02 14:33:23 +00:00
onPressed: () {
_navigationService.navigateTo(AboutView.routeName);
});
}
}