This commit is contained in:
krawieck 2020-10-06 16:22:49 +02:00
parent 17f64e24e0
commit 585baf58f9
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ import '../widgets/post_list_options.dart';
import 'add_account.dart'; import 'add_account.dart';
import 'inbox.dart'; import 'inbox.dart';
/// First thing users sees when opening the app
/// Shows list of posts from all or just specific instances
class HomeTab extends HookWidget { class HomeTab extends HookWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -200,6 +202,7 @@ class HomeTab extends HookWidget {
} }
} }
/// Infinite list of posts
class InfiniteHomeList extends HookWidget { class InfiniteHomeList extends HookWidget {
final Function onStyleChange; final Function onStyleChange;
final InfiniteScrollController controller; final InfiniteScrollController controller;

View File

@ -1,3 +1,4 @@
/// Strips protocol, 'www.', and trailing '/' from [url] aka. cleans it up
String cleanUpUrl(String url) { String cleanUpUrl(String url) {
if (url.startsWith('https://')) { if (url.startsWith('https://')) {
url = url.substring(8); url = url.substring(8);