Clean up design
This commit is contained in:
parent
7e8ad4a42c
commit
a6dd9072a2
16 changed files with 141 additions and 201 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:famedlysdk/famedlysdk.dart';
|
||||
import 'package:fluffychat/components/settings_themes.dart';
|
||||
import 'package:fluffychat/views/settings_devices.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
|
|
@ -9,10 +10,9 @@ import 'package:url_launcher/url_launcher.dart';
|
|||
|
||||
import 'app_info.dart';
|
||||
import 'chat_list.dart';
|
||||
import 'settings_themes.dart';
|
||||
import '../components/adaptive_page_layout.dart';
|
||||
import 'sign_up.dart';
|
||||
import '../components/dialogs/simple_dialogs.dart';
|
||||
import '../components/adaptive_page_layout.dart';
|
||||
import '../components/content_banner.dart';
|
||||
import '../components/matrix.dart';
|
||||
import '../i18n/i18n.dart';
|
||||
|
|
@ -132,6 +132,17 @@ class _SettingsState extends State<Settings> {
|
|||
],
|
||||
body: ListView(
|
||||
children: <Widget>[
|
||||
ListTile(
|
||||
title: Text(
|
||||
I18n.of(context).changeTheme,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
ThemesSettings(),
|
||||
Divider(thickness: 1),
|
||||
ListTile(
|
||||
title: Text(
|
||||
I18n.of(context).account,
|
||||
|
|
@ -147,16 +158,6 @@ class _SettingsState extends State<Settings> {
|
|||
subtitle: Text(profile?.displayname ?? client.userID.localpart),
|
||||
onTap: () => setDisplaynameAction(context),
|
||||
),
|
||||
ListTile(
|
||||
trailing: Icon(Icons.color_lens),
|
||||
title: Text(I18n.of(context).changeTheme),
|
||||
onTap: () async => await Navigator.of(context).push(
|
||||
AppRoute.defaultRoute(
|
||||
context,
|
||||
ThemesSettingsView(),
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
trailing: Icon(Icons.devices_other),
|
||||
title: Text(I18n.of(context).devices),
|
||||
|
|
@ -167,6 +168,16 @@ class _SettingsState extends State<Settings> {
|
|||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
trailing: Icon(Icons.account_circle),
|
||||
title: Text(I18n.of(context).accountInformations),
|
||||
onTap: () => Navigator.of(context).push(
|
||||
AppRoute.defaultRoute(
|
||||
context,
|
||||
AppInfoView(),
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
trailing: Icon(Icons.exit_to_app),
|
||||
title: Text(I18n.of(context).logout),
|
||||
|
|
@ -190,7 +201,7 @@ class _SettingsState extends State<Settings> {
|
|||
onTap: () => launch("https://ko-fi.com/V7V315112"),
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.donut_large),
|
||||
leading: Icon(Icons.local_atm),
|
||||
title: Text("Liberapay " + I18n.of(context).donate),
|
||||
onTap: () =>
|
||||
launch("https://liberapay.com/KrilleChritzelius/donate"),
|
||||
|
|
@ -201,16 +212,6 @@ class _SettingsState extends State<Settings> {
|
|||
onTap: () => launch(
|
||||
"https://gitlab.com/ChristianPauly/fluffychat-flutter/issues"),
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.account_circle),
|
||||
title: Text(I18n.of(context).accountInformations),
|
||||
onTap: () => Navigator.of(context).push(
|
||||
AppRoute.defaultRoute(
|
||||
context,
|
||||
AppInfoView(),
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.list),
|
||||
title: Text(I18n.of(context).changelog),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue