Modified logo, added functionality to zoom in on user pic
All checks were successful
Build Flutter Web and Docker Image for Local Registry / Build Flutter Web App (push) Successful in 3m10s
All checks were successful
Build Flutter Web and Docker Image for Local Registry / Build Flutter Web App (push) Successful in 3m10s
This commit is contained in:
parent
c5eef02ce1
commit
1413ba7263
Binary file not shown.
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 155 KiB |
@ -53,7 +53,6 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
if (state == AppLifecycleState.resumed) {
|
||||
// Reestablish the WebSocket connection when the app returns to the foreground
|
||||
_reconnectWebSocket();
|
||||
}
|
||||
}
|
||||
@ -127,12 +126,40 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
|
||||
}
|
||||
}
|
||||
|
||||
void _showImageDialog(BuildContext context, ImageProvider imageProvider) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return Dialog(
|
||||
backgroundColor: Colors.transparent,
|
||||
child: GestureDetector(
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
color: Colors.black87,
|
||||
),
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Image(image: imageProvider, fit: BoxFit.contain),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildMessageItem(Map<String, dynamic> message) {
|
||||
final imageId = message['Id'];
|
||||
final imageProvider = _imageCache[imageId] ??
|
||||
const AssetImage('assets/default_profile_image.png');
|
||||
|
||||
return Padding(
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
if (_imageCache.containsKey(imageId)) {
|
||||
_showImageDialog(context, imageProvider);
|
||||
}
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
@ -168,6 +195,7 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user