zoomify_fusion 1.0.1 zoomify_fusion: ^1.0.1 copied to clipboard
A flutter package which makes easier to display the differences between two images with zoom feature.
import 'package:flutter/material.dart';
import 'package:zoomify_fusion/zoomify_fusion.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: HomePage(),
);
}
}
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: ZoomifyFusion(
beforeImage: 'assets/after.jpg',
afterImage: 'assets/before.jpg',
needleImage: 'assets/needle_arrow.png',
),
);
}
}