InteractiveViewer Widget
Project Preview
- Interested in seeing the live demo? Click here to explore.
- Want to view the source code? Visit the project on GitHub.
Code Snippet
import 'package:flutter/material.dart';
class InteractiveViewerWidget extends StatelessWidget {
const InteractiveViewerWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.orangeAccent,
body: InteractiveViewer(
boundaryMargin: const EdgeInsets.all(
double.infinity,
),
child: Scaffold(
appBar: AppBar(
title: const Text(
'Flutter Mapp',
),
),
),
),
);
}
}