Add manual auth screen
This commit is contained in:
@ -7,8 +7,15 @@ import '../../services/router/routes_list.dart';
|
||||
|
||||
class BaseAuthPage extends StatelessWidget {
|
||||
final List<Widget> children;
|
||||
final String? title;
|
||||
final bool? showSettings;
|
||||
|
||||
const BaseAuthPage({super.key, required this.children});
|
||||
const BaseAuthPage({
|
||||
super.key,
|
||||
required this.children,
|
||||
this.title,
|
||||
this.showSettings,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -16,12 +23,15 @@ class BaseAuthPage extends StatelessWidget {
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('MoneyMgr'),
|
||||
title: Text(title ?? 'MoneyMgr'),
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: onSettingsPressed,
|
||||
icon: const Icon(Icons.settings),
|
||||
),
|
||||
// Settings button
|
||||
showSettings != false
|
||||
? IconButton(
|
||||
onPressed: onSettingsPressed,
|
||||
icon: const Icon(Icons.settings),
|
||||
)
|
||||
: Container(),
|
||||
],
|
||||
),
|
||||
body: SeparatedColumn(
|
||||
|
Reference in New Issue
Block a user