Search packages, repositories and app categories

full_screen_image cover
Package detailsv2.0.0

full_screen_image

Full screen photo viewer. It shuts off when scrolling vertically. Can work with Hero widget.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.1K
Likes
131
Pub points
130

Install package

flutter pub add full_screen_image

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package for displaying images in full screen with a smooth, gesture-driven interface. It automatically dismisses when the user scrolls vertically, ensuring intuitive navigation. The package supports integration with the Hero widget for seamless transitions between screens. Designed for simplicity and performance across multiple platforms, it enhances image viewing experiences in apps that prioritize visual content. Ideal for galleries, photo sharing, or any app requiring immersive image display.

Use cases

  • Viewing high-resolution photos in galleries
  • Creating immersive image browsing experiences
  • Implementing hero transitions with images
  • Building photo-sharing applications
  • Enhancing visual storytelling in apps
  • Displaying full-screen product images

Key features

  • Auto-dismiss on vertical scroll
  • Hero widget compatibility
  • Cross-platform support (Android, iOS, Web, macOS, Windows, Linux)
  • Simple integration with existing UI
  • Smooth touch gestures for navigation
  • Optimized for performance and responsiveness

Suitable for

  • Image gallery apps
  • Photo sharing platforms
  • E-commerce product displays
  • Visual content-heavy applications
  • Developers seeking simple full-screen image viewers
  • Apps requiring smooth image transitions

Considerations

  • Limited customization options beyond basic behavior
  • May require additional handling for complex navigation
  • Not designed for multi-image swipe interfaces
  • Best suited for single-image viewing scenarios
  • Does not include built-in image caching
  • Requires manual management of state during transitions

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Full Screen image

Full screen photo viewer. It shuts off when scrolling vertically. Can work with Hero widget

Installation

To use this plugin, add full_screen_image as a dependency in your pubspec.yaml file.

full_screen_image: any

Getting Started

Check out the example app using full_screen_image.

Flutter

Full screen image:
  FullScreenWidget(
        child: ClipRRect(
          borderRadius: BorderRadius.circular(16),
          child: Image.asset(
            "assets/image1.jpg",
            fit: BoxFit.cover,
          ),
        ),
      )

Full screen with hero:
FullScreenWidget(
        child: Hero(
          tag: "customTag",
          child: ClipRRect(
            borderRadius: BorderRadius.circular(16),
            child: Image.asset(
              "assets/image2.jpg",
              fit: BoxFit.cover,
            ),
          ),
        ),
      );

Small image:

if you don't want widget full screen then use center widget

 FullScreenWidget(
        child: Center(
          child: Hero(
            tag: "smallImage",
            child: ClipRRect(
              borderRadius: BorderRadius.circular(16),
              child: Image.asset(
                "assets/image3.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
        ),
      );
Custom background color:
FullScreenWidget(
        backgroundColor: Colors.purple,
        child: Center(
          child: Hero(
            tag: "customBackground",
            child: ClipRRect(
              borderRadius: BorderRadius.circular(16),
              child: Image.asset(
                "assets/image3.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
        ),
      );

Non transparent widget:
FullScreenWidget(
        backgroundColor: Colors.purple,
        backgroundIsTransparent: false,
        child: Center(
          child: Hero(
            tag: "nonTransparent",
            child: ClipRRect(
              borderRadius: BorderRadius.circular(16),
              child: Image.asset(
                "assets/image3.jpg",
                fit: BoxFit.cover,
              ),
            ),
          ),
        ),
      );

Custom widget:
  FullScreenWidget(
        child: SafeArea(
          child: Card(
            elevation: 4,
            child: Container(
              height: 350,
              padding: const EdgeInsets.all(8.0),
              child: Column(
                children: <Widget>[
                  Hero(
                    tag: "customWidget",
                    child: ClipRRect(
                      borderRadius: BorderRadius.circular(16),
                      child: Image.asset(
                        "assets/image3.jpg",
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                  SizedBox(
                    height: 16,
                  ),
                  Text('Lorem text',style: TextStyle(color: Colors.black,fontWeight: FontWeight.bold),),
                  SizedBox(
                    height: 16,
                  ),
                  Expanded(
                    child: Text(
                      lorem,
                    ),
                  ),

                ],
              ),
            ),
          ),
        ),
      );

License

Apache

Categories

Source repository

Projects using this package

No data available yet.