AppKitModal
you must wrap your MaterialApp
with a ReownAppKitModalTheme
widget.
ReownAppKitModalColors.lightMode
ReownAppKitModalColors.darkMode
.isDarkMode:
parameter in ReownAppKitModalTheme
like so:
ReownAppKitModalThemeData
parameters. For instance, if you want to change the main foreground and background color you could do:
ReownAppKitModalTheme
’s themeData:
parameter:
ReownAppKitModalTheme
comes with default border radiuses but you can override these values by passing your own values to ReownAppKitModalRadiuses()
object and then adding this object to ReownAppKitModalThemeData
’s radiuses:
parameter.
But you can also set no corner radiuses at all by setting this value to ReownAppKitModalRadiuses.square
or everything circular by using ReownAppKitModalRadiuses.circular
MaterialApp
with a ReownAppKitModalTheme
widget, the ReownAppKitModal
will use the default light theme.ReownAppKitModalTheme
is an InheritedWidget so it comes with a few handy methods for you to use:
Check if the current time is dark:
ReownAppKitModalThemeData
object:
ReownAppKitModalColors
object:
ReownAppKitModalThemeData
object. (More and easier customization options will come in the future)