mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
tap on part image to launch full screen view
This commit is contained in:
parent
081b6aa27c
commit
ec816b9bb1
2 changed files with 35 additions and 1 deletions
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),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue