Skip to content

Form crash when opening Camera on IOS iOS 26: (2025) #89

@MuhammadFaisalIchal

Description

@MuhammadFaisalIchal

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

4.3.1

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
[√] Flutter (Channel stable, 3.29.3, on Microsoft Windows [Version 10.0.26100.6584], locale en-GB) [605ms]
    • Flutter version 3.29.3 on channel stable at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (6 months ago), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[√] Windows Version (11 Home Single Language 64-bit, 24H2, 2009) [2.5s]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [4.0s]
    • Android SDK at D:\android_projects\AndroidSDK
    • Platform android-35, build-tools 35.0.0
    • ANDROID_HOME = D:\android_projects\AndroidSDK
    • ANDROID_SDK_ROOT = D:\android_projects\AndroidSDK
    • Java binary at: D:\Programs\Android Studio\jbr\bin\java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web [128ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2019 16.4.5) [127ms]
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
    • Visual Studio Professional 2019 version 16.4.29806.167
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 2023.1) [28ms]
    • Android Studio at D:\Programs\Android Studio
    • 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.7+0-b2043.56-10550314)

[√] VS Code (version 1.104.1) [26ms]
    • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.118.0

[√] Connected device (4 available) [514ms]
    • 24069PC21G (mobile) • 41f244b • android-arm64  • Android 15 (API 35)
    • Windows (desktop)   • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.6584]
    • Chrome (web)        • chrome  • web-javascript • Google Chrome 140.0.7339.128
    • Edge (web)          • edge    • web-javascript • Microsoft Edge 140.0.3485.54

[√] Network resources [515ms]
    • All expected network resources are available.

Minimal code example

Code sample
File? pictureFile;

FormBuilderImagePicker(
                      bottomSheetPadding: const EdgeInsets.only(bottom: 16),
                      availableImageSources: const [
                        ImageSourceOption.camera,
                        ImageSourceOption.gallery
                      ],
                      imageQuality: 50,
                      name: 'photos1',
                      maxImages: 1,
                      fit: BoxFit.scaleDown,
                      decoration: const InputDecoration(
                        isCollapsed: true,
                        contentPadding: EdgeInsets.only(
                          top: 2,
                          left: 2,
                          bottom: 2,
                        ),
                      ),
                      iconColor: primaryColor,
                      placeholderWidget: Icon(
                        Icons.add_a_photo_rounded,
                        size: 34,
                        color: Colors.grey.shade400,
                      ),
                      autovalidateMode: AutovalidateMode.onUserInteraction,
                      validator: (value) {
                        if (value == null || value.isEmpty) {
                          return 'Provide picture';
                        }
                        return null;
                      },
                      onChanged: (value) {
                        if (value!.isNotEmpty) {
                          XFile? pickedFile = value.first;
                          pictureFile = File(pickedFile!.path);
                        }
                      },
                    )

Current Behavior

So it happens when the form picker version 4.3.1 (newest by now) are used on iOS using 26th version of 2025.

After the user taking a picture and click a button to save it to go back to previous screen (as it should be), it doesnt work as it should be, but go back to previous screen like crashed

Expected Behavior

After taking capture or picking an image from gallery, it should show the thumbnail and can be sent to another page like it should be, but it doesnt

Steps To Reproduce

Just try to run on iOS with OS 26

Aditional information

Form.Builder.Flutter.iOS.26.Issues.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions