Skip to content
Snippets Groups Projects
Commit 792f422c authored by vjrj's avatar vjrj
Browse files

Assets fix. ListTile same size without subtitle

parent 0c8448a8
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ ListTile contactToListItem(Contact contact, int index, BuildContext context, ...@@ -182,7 +182,7 @@ ListTile contactToListItem(Contact contact, int index, BuildContext context,
contact.subtitle != null ? Text(contact.subtitle!) : null; contact.subtitle != null ? Text(contact.subtitle!) : null;
return ListTile( return ListTile(
title: Text(title), title: Text(title),
subtitle: subtitle, subtitle: subtitle ?? Container(),
tileColor: tileColor(index, context), tileColor: tileColor(index, context),
onTap: onTap, onTap: onTap,
onLongPress: onLongPress, onLongPress: onLongPress,
...@@ -203,3 +203,5 @@ bool inDevelopment() => !inProduction(); ...@@ -203,3 +203,5 @@ bool inDevelopment() => !inProduction();
bool onlyInProduction() => kReleaseMode; bool onlyInProduction() => kReleaseMode;
bool inProduction() => onlyInProduction(); bool inProduction() => onlyInProduction();
String assets(String str) => (kIsWeb && kReleaseMode) ? 'assets/$str' : str;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment