UI changes
This commit is contained in:
@@ -31,14 +31,16 @@ class BookmarkItem extends ConsumerWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ListTile(
|
return InkWell(
|
||||||
onTap: ref.watch(appStatusProvider).useInAppBrowser == true
|
onTap: ref.watch(appStatusProvider).useInAppBrowser == true
|
||||||
? () => ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark)
|
? () => ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark)
|
||||||
: () => openUrl(bookmark.url!),
|
: () => openUrl(bookmark.url!),
|
||||||
isThreeLine: true,
|
child: Padding(
|
||||||
title: Padding(
|
padding: const EdgeInsets.all(16),
|
||||||
padding: const EdgeInsets.only(bottom: 4),
|
child: Column(
|
||||||
child: Row(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
children: [
|
children: [
|
||||||
if (ref.watch(appStatusProvider).showFavicon == true)
|
if (ref.watch(appStatusProvider).showFavicon == true)
|
||||||
FutureBuilder(
|
FutureBuilder(
|
||||||
@@ -95,10 +97,7 @@ class BookmarkItem extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(height: 4),
|
||||||
subtitle: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(
|
Text(
|
||||||
validateStrings(bookmark.description, bookmark.websiteDescription),
|
validateStrings(bookmark.description, bookmark.websiteDescription),
|
||||||
maxLines: 3,
|
maxLines: 3,
|
||||||
@@ -142,6 +141,7 @@ class BookmarkItem extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,20 +118,7 @@ class BookmarksScreen extends ConsumerWidget {
|
|||||||
// Bottom gap for FAB
|
// Bottom gap for FAB
|
||||||
return const SizedBox(height: 80);
|
return const SizedBox(height: 80);
|
||||||
}
|
}
|
||||||
|
return BookmarkItem(bookmark: bookmarks.bookmarks[index]);
|
||||||
final link = bookmarks.bookmarks[index];
|
|
||||||
return Column(
|
|
||||||
children: [
|
|
||||||
BookmarkItem(bookmark: link),
|
|
||||||
if (index < bookmarks.bookmarks.length - 1)
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
||||||
child: Divider(
|
|
||||||
color: Theme.of(context).colorScheme.tertiary.withOpacity(0.3),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user