25 lines
707 B
Dart
25 lines
707 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:photos/ui/settings_page.dart';
|
|
import 'package:photos/utils/navigation_util.dart';
|
|
|
|
class SettingsButton extends StatelessWidget {
|
|
const SettingsButton({Key key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Align(
|
|
alignment: Alignment.topRight,
|
|
child: IconButton(
|
|
icon: Icon(
|
|
Icons.settings,
|
|
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
|
),
|
|
padding: EdgeInsets.fromLTRB(16, 4, 16, 18),
|
|
onPressed: () async {
|
|
routeToPage(context, SettingsPage());
|
|
},
|
|
),
|
|
);
|
|
}
|
|
}
|