add docs
This commit is contained in:
parent
17f64e24e0
commit
585baf58f9
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue