2
0
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:
Oliver Walters
2021-02-07 08:40:01 +11:00
parent 081b6aa27c
commit ec816b9bb1
2 changed files with 35 additions and 1 deletions

View 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),
);
}
}