riccardoratta / platform_alert_dialog Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin for build alert dialogs adapted to the current platform.
License: BSD 2-Clause "Simplified" License
Flutter plugin for build alert dialogs adapted to the current platform.
License: BSD 2-Clause "Simplified" License
NoSuchMethodError: The getter 'alertDialogLabel' was called on null on iOS but on android working well.
I found how to fix,
on you main file, in you MaterialApp, add this lines;
localizationsDelegates: [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, DefaultCupertinoLocalizations.delegate, GlobalCupertinoLocalizations.delegate // this line fixes. Please update the package. ], supportedLocales: [ const Locale('en'), // ],
Please provide parameters to customize the colors used (where caller manages dark mode) or make the colors dark mode aware to match the system/platform pallets.
On pub.dev this plugin is listed as supporting Flutter Web, however that is not actually the case. Here is the error message and stack trace:
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building PlatformAlertDialog(dirty, dependencies: [_InheritedTheme, _LocalizationsScope-[GlobalKey#99ca8]]):
A build function returned null.
The offending widget is: PlatformAlertDialog
Build functions must never return null.
To return an empty space that causes the building widget to fill available room, return "Container()". To return an empty space that takes as little room as possible, return "Container(width: 0.0, height: 0.0)".
The relevant error-causing widget was
PlatformAlertDialog
lib\…\rankings\rating_explanation_footer.dart:31
When the exception was thrown, this was the stack
throw_ (C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart:212:49))
<fn> (packages/flutter/src/widgets/debug.dart:302:7))
debugWidgetBuilderValue (packages/flutter/src/widgets/debug.dart:322:5))
performRebuild (packages/flutter/src/widgets/framework.dart:4632:7))
rebuild (packages/flutter/src/widgets/framework.dart:4343:5))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.