forked from bluefireteam/photo_view
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinline_examples.dart
45 lines (44 loc) · 1.41 KB
/
inline_examples.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import './app_bar.dart';
import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
class InlineExamples extends StatelessWidget{
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
const ExampleAppBar(
title: "Inline Examples",
showGoBack: true,
),
new Expanded(
child: new ListView(
children: <Widget>[
new Container(
padding: EdgeInsets.all(20.0),
child: new Text(
"In order to use photoview in a box with the size different than the screen, use the class PhotoViewInline",
style: const TextStyle(
fontSize: 18.0
),
),
),
new Container(
margin: EdgeInsets.symmetric(
vertical: 20.0
),
height: 300.0,
child: new PhotoViewInline(
imageProvider: AssetImage("assets/large-image.jpg"),
maxScale: PhotoViewScaleBoundary.covered,
),
),
],
)
)
],
),
);
}
}