ueman / feedback

A simple widget for getting better feedback.
https://pub.dev/packages/feedback
404 stars 99 forks source link

showAndUploadToGitLab includes a blank screenshot with iOS simulator #329

Closed Pfenya closed 1 month ago

Pfenya commented 1 month ago

Version

3.1.0

Library

feedback_gitlab

Flutter channel

stable

Flutter version

3.24.3

Platform

iOS

Details

I am working on a small Flutter app that has a Webview in it. I added a Floating Button to be able to collect feedback during testing. The button itself works and opens the feedback interface but when running it with the iOS simulator for iOS 18 the screenshot that gets included for gitlab is simply a blank image. From the Android simulator it is working fine.

Unfortunately I do not have it set up yet to test with a real iOS device so I do not know if that would make a difference.

Code is very straightforward:

floatingActionButtonLocation: FloatingActionButtonLocation.startTop,
      floatingActionButton:  GestureDetector(
        onTap: () { BetterFeedback.of(context).showAndUploadToGitLab(
                  projectId: 'correct',
                  apiToken: 'works',
                  gitlabUrl: 'self hosted'
                );
        },
        child: Builder(
          builder: (context) {
            if (kDebugMode){
            return Column(
              children: [
                Center(
                  child: Container(
                    margin: EdgeInsets.only(top: 10, left : 0),
                    child: Icon(Icons.feedback, color: Colors.white),
                  ),
                ),
              ],
            );
            } else {
              return Column();
            }
          }
        ),
      ),

Thanks for feedback - I am new to Flutter so this may be due to user error also

Steps to reproduce

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-x64, locale de-DE)
    • Flutter version 3.24.3 on channel stable at /Users/jenni/Sites/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (3 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/jenni/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 77.1.1
    • Dart plugin version 223.8977

[✓] VS Code (version 1.93.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0

[✓] Connected device (4 available)            
    • iPhone Pro (mobile)    • 00008120-001A2D5A3C42201E            • ios            • iOS 18.0 22A3354
    • iPhone 16 Pro (mobile) • 1B537B88-7671-4D00-8AA9-6BA29A3EBC8F • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • macOS 14.6.1 23G93 darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 129.0.6668.90

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
ueman commented 1 month ago

This is a limitation of Flutter itself: https://pub.dev/packages/feedback#-known-issues-and-limitations

Unfortunately, I can't do anything about it :(

If you have ideas for a fix, please let me know about it.

Pfenya commented 1 month ago

Thanks for the quick response! Interesting though that Android is working. If I find anything I'll let you know. Thanks for the great package in any case!