added InteractiveViewer (#55)

This commit is contained in:
Viral Vaghela
2020-08-19 03:00:52 +05:30
committed by GitHub
parent 389623e159
commit 0f53d4cc16
63 changed files with 1392 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: Text("using InteractiveViewer"),
),
body: InteractiveViewer(
boundaryMargin: EdgeInsets.all(100.0),
minScale: 0.1,
maxScale: 1.6,
child: Center(
child: FlutterLogo(
size: 90,
),
),
),
),
);
}
}