Skip to content

Commit 66c047a

Browse files
authored
Merge branch 'flutter-form-builder-ecosystem:main' into feat-on-image-selected
2 parents 54b74c6 + 779e192 commit 66c047a

23 files changed

Lines changed: 191 additions & 215 deletions

.github/workflows/base-beta.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ concurrency:
2020

2121
jobs:
2222
build:
23+
permissions:
24+
contents: read
2325
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2426
with:
2527
fvm-flavor: beta
2628
example:
29+
permissions:
30+
contents: read
2731
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
2832
with:
2933
fvm-flavor: beta
@@ -32,6 +36,8 @@ jobs:
3236
deployment:
3337
permissions:
3438
id-token: write
39+
contents: write
40+
pages: write
3541
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
3642
if: ${{ github.ref_type == 'tag' }}
3743
needs: [build, example]

.github/workflows/base.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
tags:
77
- '[0-9]+.[0-9]+.[0-9]+'
8+
- '[0-9]+.[0-9]+.[0-9]+\+[0-9]+'
89

910
pull_request:
1011
branches: [main]
@@ -18,13 +19,19 @@ concurrency:
1819

1920
jobs:
2021
build:
22+
permissions:
23+
contents: read
2124
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
2225
example:
26+
permissions:
27+
contents: read
2328
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
2429

2530
deployment:
2631
permissions:
2732
id-token: write
33+
contents: write
34+
pages: write
2835
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
2936
if: ${{ github.ref_type == 'tag' }}
3037
needs: [build, example]

.github/workflows/stale.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
jobs:
77
stale:
88
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
contents: write
913
steps:
1014
- uses: actions/stale@v10
1115
with:

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 4.4.0
2+
3+
* Update constraints to Flutter 3.38
4+
* Update constraints to Dart 3.10
5+
* Update README
6+
* Add optionsClipBehavior parameter for customizing clip behavior on image picker options. [PR #83](https://github.com/flutter-form-builder-ecosystem/form_builder_image_picker/pull/83) thanks to [@untillnesss](https://github.com/untillnesss)
7+
* Solved issue: [Form crash when opening Camera on IOS iOS 26: (2025) #89](https://github.com/flutter-form-builder-ecosystem/form_builder_image_picker/issues/89)
8+
19
## 4.3.1
210

311
* Fix: Downgrade `async` to allow compatible with `flutter_test` on Flutter 3.29 stable version [#81](https://github.com/flutter-form-builder-ecosystem/form_builder_image_picker/issues/81)
@@ -79,4 +87,3 @@
7987
## 0.1.0
8088

8189
* Initial release.
82-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Images picker field for FlutterFormBuilder. Get images from gallery or camera.
55
[![Pub Version](https://img.shields.io/pub/v/form_builder_image_picker?logo=flutter&style=for-the-badge)](https://pub.dev/packages/form_builder_image_picker)
66
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/flutter-form-builder-ecosystem/form_builder_image_picker/base.yaml?branch=main&logo=github&style=for-the-badge)](https://github.com/flutter-form-builder-ecosystem/form_builder_image_picker/actions/workflows/base.yaml)
77
[![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/flutter-form-builder-ecosystem/form_builder_image_picker?logo=codefactor&style=for-the-badge)](https://www.codefactor.io/repository/github/flutter-form-builder-ecosystem/form_builder_image_picker)
8-
[![Codecov](https://img.shields.io/codecov/c/github/flutter-form-builder-ecosystem/form_builder_image_picker?logo=codecov&style=for-the-badge)](https://codecov.io/gh/flutter-form-builder-ecosystem/form_builder_image_picker/)
8+
99
___
1010

1111
- [Features](#features)
@@ -31,7 +31,7 @@ ___
3131

3232
### Setup
3333

34-
Since this package makes use of [image_picker](https://pub.dev/packages/image_picker) package, for platform specific setup, follow the instructions [here](https://github.com/flutter/plugins/tree/main/packages/image_picker/image_picker#installation)
34+
Since this package makes use of [image_picker](https://pub.dev/packages/image_picker) package, for platform specific setup, [follow the instructions](https://github.com/flutter/plugins/tree/main/packages/image_picker/image_picker#installation)
3535

3636
### Basic use
3737

example/.metadata

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf"
7+
revision: "bd7a4a6b5576630823ca344e3e684c53aa1a0f46"
88
channel: "stable"
99

1010
project_type: app
@@ -13,26 +13,17 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
17-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
16+
create_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
17+
base_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
1818
- platform: android
19-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
20-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
19+
create_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
20+
base_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
2121
- platform: ios
22-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
23-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
24-
- platform: linux
25-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
26-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
22+
create_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
23+
base_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
2724
- platform: macos
28-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
29-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
30-
- platform: web
31-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
32-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
33-
- platform: windows
34-
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
35-
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
25+
create_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
26+
base_revision: bd7a4a6b5576630823ca344e3e684c53aa1a0f46
3627

3728
# User provided section
3829

example/README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,36 @@
1-
# example
1+
# Example Project for form_builder_image_picker
22

3-
An example app for form_builder_image_picker
3+
This project demonstrates how to use the `form_builder_image_picker` package in a Flutter application.
44

55
## Getting Started
66

7-
This project is a starting point for a Flutter application.
7+
To get started with this example project, follow these steps:
88

9-
A few resources to get you started if this is your first Flutter project:
9+
1. **Clone the repository**:
1010

11-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
11+
```bash
12+
git clone <repository-url>
13+
cd form_builder_image_picker/example
14+
```
1315

14-
For help getting started with Flutter, view our
15-
[online documentation](https://flutter.dev/docs), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
16+
2. **Install dependencies**:
17+
18+
```bash
19+
flutter pub get
20+
```
21+
22+
3. **Run the application**:
23+
24+
```bash
25+
flutter run
26+
```
27+
28+
## Features
29+
30+
- Demonstrates how to implement image picker fields using the `form_builder_image_picker` package.
31+
- Supports selecting, uploading, and managing images in forms.
32+
- Integration with form validation.
33+
34+
## Acknowledgments
35+
36+
- [form_builder_image_picker](https://pub.dev/packages/form_builder_image_picker) - The package used in this example.

example/android/app/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ android {
1111
ndkVersion = flutter.ndkVersion
1212

1313
compileOptions {
14-
sourceCompatibility = JavaVersion.VERSION_11
15-
targetCompatibility = JavaVersion.VERSION_11
14+
sourceCompatibility = JavaVersion.VERSION_17
15+
targetCompatibility = JavaVersion.VERSION_17
1616
}
1717

1818
kotlinOptions {
19-
jvmTarget = JavaVersion.VERSION_11.toString()
19+
jvmTarget = JavaVersion.VERSION_17.toString()
2020
}
2121

2222
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2324
applicationId = "com.flutterformbuilderecosystem.example"
2425
// You can update the following values to match your application needs.
2526
// For more information, see: https://flutter.dev/to/review-gradle-config.
@@ -31,6 +32,7 @@ android {
3132

3233
buildTypes {
3334
release {
35+
// TODO: Add your own signing config for the release build.
3436
// Signing with the debug keys for now, so `flutter run --release` works.
3537
signingConfig = signingConfigs.getByName("debug")
3638
}

example/android/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ allprojects {
55
}
66
}
77

8-
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
8+
val newBuildDir: Directory =
9+
rootProject.layout.buildDirectory
10+
.dir("../../build")
11+
.get()
912
rootProject.layout.buildDirectory.value(newBuildDir)
1013

1114
subprojects {

example/android/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
3-
android.enableJetifier=true

0 commit comments

Comments
 (0)