#StackBounty: #flutter How to solve offset of screenshot_share_image package in flutter?

Bounty: 50

Hello I have an issue during long time, but not found solution. I tried to make a screenshot and share. To do this, I use the package https://pub.dev/packages/screenshot_share_image
But there is an issue when share is launch, and only if I make fall the keyboard and after I publish or cancel, I have an offset in bottom of my device.

This offset can be remove without close the app

enter image description here

It can be reproduce with package exemple :

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

import 'package:screenshot_share_image/screenshot_share_image.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();

class _MyAppState extends State<MyApp> {
  void initState() {

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    // Platform messages may fail, so we use a try/catch PlatformException.
    Future.delayed(const Duration(seconds: 5), () {

    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;

  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        body: Container(
          color: Colors.red,
          child: Center(
            child: Container(
              width: 200.0,
              height: 200.0,
              color: Colors.green,

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.