Start to make sidebar configurable

This commit is contained in:
Vishesh Handa
2020-09-08 23:34:11 +02:00
parent 56e5c10696
commit 59f2098b36
2 changed files with 30 additions and 0 deletions

View File

@ -132,6 +132,8 @@ settings:
storage:
title: Storage
fileName: Filename
drawer:
title: Sidebar Settings
editors:
checklist:

View 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,
);
}
}