mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
Start to make sidebar configurable
This commit is contained in:
@ -132,6 +132,8 @@ settings:
|
||||
storage:
|
||||
title: Storage
|
||||
fileName: Filename
|
||||
drawer:
|
||||
title: Sidebar Settings
|
||||
|
||||
editors:
|
||||
checklist:
|
||||
|
28
lib/screens/settings_drawer.dart
Normal file
28
lib/screens/settings_drawer.dart
Normal file
@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
|
||||
class AppDrawerSettings extends StatefulWidget {
|
||||
@override
|
||||
_AppDrawerSettingsState createState() => _AppDrawerSettingsState();
|
||||
}
|
||||
|
||||
class _AppDrawerSettingsState extends State<AppDrawerSettings> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var body = Container();
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(tr("settings.drawer.title")),
|
||||
leading: IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
),
|
||||
body: body,
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user