Add usePathUrlStrategy to web setup instructions (#28120)

* Add `usePathUrlStrategy` to web setup instructions

Supabase redirects do not work with Flutter's default URL strategy.

* fix prettier issue
This commit is contained in:
Felipe Peter authored and GitHub committed 2024-08-15 05:48:02 +00:00
1 parent 4a187616ac
commit 6e795f54ec
1 file changed
+12 -1
@@ -119,7 +119,18 @@ Add an intent-filter to enable deep linking:
</TabPanel>
<TabPanel id="web" label="Web">
There are no additional configurations.
Supabase redirects do not work with Flutter's [default URL strategy](https://docs.flutter.dev/ui/navigation/url-strategies).
We can switch to the path URL strategy as follows:
```dart
import 'package:flutter_web_plugins/url_strategy.dart';
void main() {
usePathUrlStrategy();
runApp(ExampleApp());
}
```
</TabPanel>
</Tabs>