Add photo view for thumbnails, emotes, and badges (#372)
* Add photo view for emotes and badges * Add photo view to stream thumbnails * Remove dismissable and use close button * Use cached network image provider * Add dismissible
This commit is contained in:
parent
3de9eb8351
commit
a5cc7d8f3f
5 changed files with 74 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ import 'package:frosty/screens/channel/chat/stores/chat_assets_store.dart';
|
|||
import 'package:frosty/screens/settings/stores/settings_store.dart';
|
||||
import 'package:frosty/utils.dart';
|
||||
import 'package:frosty/widgets/cached_image.dart';
|
||||
import 'package:frosty/widgets/photo_view.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
|
|
@ -695,7 +696,13 @@ class IRCMessage {
|
|||
primary: false,
|
||||
children: [
|
||||
ListTile(
|
||||
leading: leading,
|
||||
leading: InkWell(
|
||||
onTap: () => showDialog(
|
||||
context: context,
|
||||
builder: (context) => FrostyPhotoViewDialog(imageUrl: url),
|
||||
),
|
||||
child: leading,
|
||||
),
|
||||
title: Text(
|
||||
title,
|
||||
style: const TextStyle(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue