miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 673 forks source link

Fix web example on Flutter 3.22 #1578

Closed navaronbracke-endare closed 3 months ago

navaronbracke-endare commented 3 months ago

This PR fixes the example for the web, that now needs a different method of bootstrapping in Flutter 3.22

I had forgotten to include this commit in my last PR, after testing the web example.

We still hit the CanvasKit undefined module error when running the example a second time, but this was reported upstream in flutter/flutter.

navaronbracke commented 3 months ago

The undefined module error is tracked for a cherry pick to stable, see https://github.com/flutter/flutter/issues/152844