This commit is contained in:
zoe 2022-09-06 10:30:41 +02:00
parent c65641a222
commit 374c129adc
3 changed files with 12 additions and 6 deletions

View File

@ -217,7 +217,7 @@ Future<MapEntry<int, List<ThreadModel>?>> getPostsForAccount(
for (var element in rb) { for (var element in rb) {
posts.add(PostModel.fromJson(element, model.identity)); posts.add(PostModel.fromJson(element, model.identity));
} }
posts.sort(); // posts.sort();
List<ThreadModel> threads = []; List<ThreadModel> threads = [];
for (var element in posts) { for (var element in posts) {

View File

@ -56,7 +56,7 @@ class _ProfileViewState extends State<ProfileView> {
} }
await addRelationship(m.values.first!); await addRelationship(m.values.first!);
} }
if (i >= global.settings!.identities.length) { if (i >= global.settings!.identities.length - 1) {
if (mounted) { if (mounted) {
setState(() { setState(() {
loading = false; loading = false;
@ -122,6 +122,7 @@ class _ProfileViewState extends State<ProfileView> {
void initState() { void initState() {
activeIdentity = widget.model.identity; activeIdentity = widget.model.identity;
identities.addAll({widget.model.identity: widget.model}); identities.addAll({widget.model.identity: widget.model});
addRelationship(widget.model);
update(); update();
loadPosts(); loadPosts();
_scrollController.addListener(() { _scrollController.addListener(() {

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:universal_html/html.dart';
import 'dracula.dart' as color_dracula; import 'dracula.dart' as color_dracula;
import 'tess.dart' as color_tess; import 'tess.dart' as color_tess;
import 'adwaita.dart' as color_adwaita; import 'adwaita.dart' as color_adwaita;
@ -71,11 +72,15 @@ ThemeData getTheme(CustomColors colors) {
color: colors.colorScheme.onSurface, color: colors.colorScheme.onSurface,
), ),
elevatedButtonTheme: ElevatedButtonThemeData( elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle( style: ElevatedButton.styleFrom(
textStyle: MaterialStateProperty.all( foregroundColor: colors.colorScheme.onPrimary,
const TextStyle(fontSize: 18), textStyle: const TextStyle(
fontFamily: 'Atkinson',
fontSize: 18,
fontWeight: FontWeight.w700,
),
), ),
)), ),
outlinedButtonTheme: OutlinedButtonThemeData( outlinedButtonTheme: OutlinedButtonThemeData(
style: ButtonStyle( style: ButtonStyle(
backgroundColor: MaterialStateProperty.all( backgroundColor: MaterialStateProperty.all(