mkxmkmx
This commit is contained in:
parent
c65641a222
commit
374c129adc
|
@ -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) {
|
||||
|
|
|
@ -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(() {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue