nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.

Home Page:https://mariuti.com/shadcn-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theming question

eb-so opened this issue · 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 🙏