zonble / flutter_platform_alert

Plays native alert sound and shows native dialogs/alerts in your Flutter app.
https://pub.dev/packages/flutter_platform_alert
MIT License
74 stars 14 forks source link

Web support #11

Open gabrc52 opened 2 years ago

gabrc52 commented 2 years ago

For web, JavaScript alert can be used.

hatemragab commented 1 year ago

any updates?

danielinooo95 commented 1 year ago

any updates?

Zhoucheng133 commented 9 months ago

I think javascript alert can be used without this package:

import 'dart:html' as html;
html.window.alert('This is a browser alert.');

Tip: If you use it directly, it may have warning, you can add "avoid_web_libraries_in_flutter" in head