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) {
posts.add(PostModel.fromJson(element, model.identity));
}
posts.sort();
// posts.sort();
List<ThreadModel> threads = [];
for (var element in posts) {

View File

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

View File

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