zoom_arj 0.0.2 copy "zoom_arj: ^0.0.2" to clipboard
zoom_arj: ^0.0.2 copied to clipboard

Zoom plugin by Arijit

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:zoom_arj/zoom_arj.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Testbody(),
    );
  }
}

class Testbody extends StatefulWidget {
  Testbody({Key? key}) : super(key: key);

  @override
  State<Testbody> createState() => _TestbodyState();
}

class _TestbodyState extends State<Testbody> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Zoomarj(
        input_widget: Container(
            width: 120,
            height: 20,
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.all(
                Radius.circular(12.0),
              ),
            ),
            child: Text('Running on:')),
        pinchzoom: 1,

        /// for pinchzoom give input 1
        height: MediaQuery.of(context).size.height - 80,
        width: MediaQuery.of(context).size.width,
      ),
    );
  }
}