Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 528 Bytes

File metadata and controls

23 lines (19 loc) · 528 Bytes

A widget that enables pan and zoom interactions with its child.

Example

InteractiveViewer(
  boundaryMargin: const EdgeInsets.all(20.0),
  child: Container(
    decoration: const BoxDecoration(
      gradient: LinearGradient(
        begin: Alignment.topCenter,
        end: Alignment.bottomCenter,
        colors: <Color>[Colors.blue, Colors.yellow],
        stops: <double>[0.0, 1.0],
      ),
    ),
  ),
);