something about notes

This commit is contained in:
Kima 2023-12-29 00:02:17 +01:00
parent 1ded31491a
commit ffbcc302ea
2 changed files with 51 additions and 6 deletions

View File

@ -0,0 +1,26 @@
import 'package:filcnaplo/theme/colors/colors.dart';
import 'package:filcnaplo_mobile_ui/screens/settings/settings_screen.i18n.dart';
import 'package:flutter/material.dart';
class NotesScreen extends StatelessWidget {
const NotesScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
leading: BackButton(color: AppColors.of(context).text),
title: Text("notes".i18n,
style: TextStyle(color: AppColors.of(context).text)),
),
body: SafeArea(
child: RefreshIndicator(
onRefresh: () {
return Future(() => null);
},
child: Text('soon')),
),
);
}
}

View File

@ -25,6 +25,7 @@ import 'package:filcnaplo_mobile_ui/common/profile_image/profile_image.dart';
import 'package:filcnaplo_mobile_ui/common/system_chrome.dart';
import 'package:filcnaplo_mobile_ui/common/widgets/update/updates_view.dart';
import 'package:filcnaplo_mobile_ui/screens/news/news_screen.dart';
import 'package:filcnaplo_mobile_ui/screens/notes/notes_screen.dart';
import 'package:filcnaplo_mobile_ui/screens/settings/accounts/account_tile.dart';
import 'package:filcnaplo_mobile_ui/screens/settings/accounts/account_view.dart';
import 'package:filcnaplo_mobile_ui/screens/settings/debug/subject_icon_gallery.dart';
@ -221,12 +222,27 @@ class SettingsScreenState extends State<SettingsScreen>
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
IconButton(
splashRadius: 32.0,
onPressed: () =>
_showBottomSheet(user.getUser(user.id ?? "")),
icon: Icon(FeatherIcons.moreVertical,
color: AppColors.of(context).text.withOpacity(0.8)),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
IconButton(
splashRadius: 32.0,
onPressed: () =>
_showBottomSheet(user.getUser(user.id ?? "")),
icon: Icon(FeatherIcons.moreVertical,
color: AppColors.of(context).text.withOpacity(0.8)),
),
// const SizedBox(
// width: 5,
// ),
IconButton(
splashRadius: 32.0,
onPressed: () => _openNotes(context),
// _showBottomSheet(user.getUser(user.id ?? "")),
icon: Icon(FeatherIcons.fileText,
color: AppColors.of(context).text.withOpacity(0.8)),
),
],
),
IconButton(
splashRadius: 26.0,
@ -1090,4 +1106,7 @@ class SettingsScreenState extends State<SettingsScreen>
void _openUpdates(BuildContext context) =>
UpdateView.show(updateProvider.releases.first, context: context);
void _openPrivacy(BuildContext context) => PrivacyView.show(context);
void _openNotes(BuildContext context) =>
Navigator.of(context, rootNavigator: true)
.push(CupertinoPageRoute(builder: (context) => const NotesScreen()));
}