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

Theming question #36

Closed eb-so closed 3 months ago

eb-so commented 3 months ago

How to import ShadcnTheme

Screenshot 2024-02-29 at 12 39 53 AM
nank1ro commented 3 months ago

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';
eb-so commented 3 months ago

I searched in your repo for ShadcnTheme but didn't find anything, and the import above didn't help 😞

eb-so commented 3 months ago

BTW This is how I'm using the package

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

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

eb-so commented 3 months ago

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

nank1ro commented 3 months ago

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
eb-so commented 3 months ago

You just need to update the documentation

nank1ro commented 3 months ago

@nank1ro Oh found the issue

it's ShadTheme not ShadcnTheme

lol would fix tomorrow the docs, didn't noticed the typo 😅

eb-so commented 3 months ago

No worries, thanks for the help 🙏