mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-09-23 01:32:22 +08:00
added InteractiveViewer (#55)
This commit is contained in:
27
using_interactiveviewer/lib/main.dart
Normal file
27
using_interactiveviewer/lib/main.dart
Normal 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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user