Closed SPiercer closed 1 month ago
i've managed to do it by doing this in the builder
MaterialApp.router(
debugShowCheckedModeBanner: false,
routerConfig: appRouter.router,
theme: MaterialTheme(Theme.of(context).textTheme).light(),
darkTheme: MaterialTheme(Theme.of(context).textTheme).dark(),
builder: (context, child) {
return shad.Theme(
data: shad.ThemeData(
colorScheme: shad.ColorSchemes.lightOrange(),
radius: 0.5,
),
child: shad.ToastLayer(child: child!),
);
},
);
I'll come up with something
You can now wrap your scaffold or anything in between MaterialApp and your main content with ShadcnLayer
, it provides the basic necessity for this package to run within your app.
Hi @sunarya-thito, first of all your package is amazing
however i only need a couple of functionalities from it such as using this sonner toast.
however i found a limitation where i have to use
ShadcnApp
in order to use this toast. and when i use it, i have to submit the Shadcn themes (colors) which contradict my design since we already made our colors and design systemis there a way i can use the toast without all of this ?