mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 02:35:27 +00:00
tap on part image to launch full screen view
This commit is contained in:
26
lib/widget/full_screen_image.dart
Normal file
26
lib/widget/full_screen_image.dart
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
import 'package:InvenTree/api.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class FullScreenWidget extends StatelessWidget {
|
||||
|
||||
// Remote URL for image
|
||||
String _url;
|
||||
|
||||
// App bar title
|
||||
String _title;
|
||||
|
||||
FullScreenWidget(this._title, this._url);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(_title),
|
||||
),
|
||||
body: InvenTreeAPI().getImage(_url),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user