Skip to content

Commit

Permalink
fixes the icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
anima-regem committed Dec 11, 2024
1 parent 317bb52 commit 3defd5f
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions lib/screens/home_screen.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:hugeicons/hugeicons.dart';
import 'package:share_plus/share_plus.dart';
Expand Down Expand Up @@ -492,9 +493,6 @@ class _HomeScreenState extends State<HomeScreen> {
child: ListView(
children: [
const DrawerHeader(
decoration: BoxDecoration(
color: Color(0xFF6750A4),
),
child: Text(
'Vyajan',
style: TextStyle(
Expand Down Expand Up @@ -595,10 +593,12 @@ class _HomeScreenState extends State<HomeScreen> {
),
),
onDismissed: (_) => _dbService.deleteLink(link.id),
child: ListTile(
child:
ListTile(
// contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
leading: Container(
width: 64,
height: 64,
width: 72,
height: 72,
decoration: BoxDecoration(
color: Colors.grey[200],
borderRadius: BorderRadius.circular(8),
Expand All @@ -622,28 +622,39 @@ class _HomeScreenState extends State<HomeScreen> {
link.metadataTitle ?? link.title,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(fontSize: 12),
),
subtitle: Text(
link.metadataDescription ?? link.url,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(fontSize: 10),
),
trailing: Row(
mainAxisAlignment: MainAxisAlignment.end,
mainAxisSize: MainAxisSize.min,
children: [
IconButton(
icon: Icon(
link.isPermanent
? HugeIcons.strokeRoundedFavourite
: HugeIcons.strokeRoundedFavourite,
color: link.isPermanent ? Colors.red : null,
SizedBox(
width: 20,
child: IconButton(
icon: Icon(
link.isPermanent
? HugeIcons.strokeRoundedFavourite
: HugeIcons.strokeRoundedFavourite,
color: link.isPermanent ? Colors.red : null,
size: 18,
),
onPressed: () =>
_dbService.togglePermanent(link.id, !link.isPermanent),
),
onPressed: () =>
_dbService.togglePermanent(link.id, !link.isPermanent),
),
IconButton(
icon: const Icon(HugeIcons.strokeRoundedShare01),
onPressed: () => _shareLinkAndMetadata(context, link),
const SizedBox(width: 16),
SizedBox(
width: 20,
child: IconButton(
icon: const Icon(HugeIcons.strokeRoundedShare01, size: 18,),
onPressed: () => _shareLinkAndMetadata(context, link),
),
),
],
),
Expand Down

0 comments on commit 3defd5f

Please sign in to comment.