nank1ro/flutter-shadcn-ui

Theming question

Closed this issue ยท 9 comments

How to import ShadcnTheme
Screenshot 2024-02-29 at 12 39 53โ€ฏAM

Everything on this library is exported in the shadcn_ui barrel file.
You just need to import it:

import 'package:shadcn_ui/shadcn_ui.dart';

I searched in your repo for ShadcnTheme but didn't find anything, and the import above didn't help ๐Ÿ˜ž

BTW This is how I'm using the package

  shadcn_ui:
    git:
      url: https://github.com/nank1ro/flutter-shadcn-ui.git
      ref: main

Can you share your code?
Are your working on a fork of the library or importing it in a project?

@nank1ro Oh found the issue
it's ShadTheme not ShadcnTheme

BTW This is how I'm using the package


  shadcn_ui:

    git:

      url: https://github.com/nank1ro/flutter-shadcn-ui.git

      ref: main

Strange.. can you try this one instead?

shadcn_ui:
    git:
      url: git@github.com:nank1ro/flutter-shadcn-ui.git
      ref: main

You just need to update the documentation

@nank1ro Oh found the issue

it's ShadTheme not ShadcnTheme

lol would fix tomorrow the docs, didn't noticed the typo ๐Ÿ˜…

No worries, thanks for the help ๐Ÿ™