nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
https://mariuti.com/shadcn-ui
MIT License
657 stars 42 forks source link

App compilation error on using ShadApp.material #75

Closed bhaaratcore closed 1 week ago

bhaaratcore commented 1 week ago

Steps to reproduce

  1. Install shadCn Ui package 2. Replace material app with return ShadApp.material() 3. Try to recompile or run the app

Expected results

This should perfectly run my app

Actual results

Not not even starting

Platform

Web

Code sample

Code sample ```dart void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return ShadApp.material( title: 'Flutter Demo', home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } }```

Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Logs

Logs ```console /C:/Users/THERO/AppData/Local/Pub/Cache/hosted/pub.dev/shadcn_ui-0.5.2/lib/src/app.dart:719:15: Error: No named parameter with the name 'checkerboardRasterCacheImages'. checkerboardRasterCacheImages: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /D:/flutter%20sdk/flutter/packages/flutter/lib/src/widgets/app.dart:412:3: Context: Found this candidate, but the arguments don't match. WidgetsApp.router({ ^^^^^^^^^^^^^^^^^ /C:/Users/THERO/AppData/Local/Pub/Cache/hosted/pub.dev/shadcn_ui-0.5.2/lib/src/app.dart:753:13: Error: No named parameter with the name 'checkerboardRasterCacheImages'. checkerboardRasterCacheImages: widget.checkerboardRasterCacheImages, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /D:/flutter%20sdk/flutter/packages/flutter/lib/src/widgets/app.dart:310:3: Context: Found this candidate, but the arguments don't match. WidgetsApp({ // can't be const because the asserts use methods on Iterable :-( ^^^^^^^^^^ ```

Flutter Doctor output

Doctor output ```console [Paste your output here] ```
nank1ro commented 1 week ago

please provide the output of flutter doctor, seems like you're not on flutter stable

nank1ro commented 1 week ago

Use the latest version ^0.5.3