Skip to main content

naki_ui 1.0.6 copy "naki_ui: ^1.0.6" to clipboard
naki_ui: ^1.0.6 copied to clipboard

A library of Material-inspired UI components and design utilities for building responsive web applications with Jaspr.

example/lib/main.dart

import 'package:jaspr/dom.dart' hide Padding;
import 'package:jaspr/jaspr.dart';

import 'package:naki_ui/framework.dart';
import 'package:naki_ui/naki_ui.dart';
import 'package:naki_ui/theme.dart';

import 'components/app_shell.dart';

@client
class TodoApp extends StatelessComponent {
  final String base;
  const TodoApp({super.key, required this.base});

  @override
  Component build(BuildContext context) {
    return NakiApp(
      title: 'Minimalist Tasks',
      locale: 'en',
      themeMode: ThemeMode.system,
      cacheThemeMode: true,
      basePath: base,
      favicon: 'assets/favicon.png',
      lightTheme: const LightThemeData(
        colorSeed: ColorSeed(
          primary: Color('#2563eb'),
          backgroundColor: Color('#f8fafc'),
          baseTextColor: Color('#0f172a'),
        ),
        typography: TypographyScheme(
          fontFamily: ['Inter', 'system-ui', 'sans-serif'],
        ),
      ),
      darkTheme: const DarkThemeData(
        colorSeed: ColorSeed(
          primary: Color('#60a5fa'),
          backgroundColor: Color('#090d16'),
          baseTextColor: Color('#f8fafc'),
        ),
        typography: TypographyScheme(
          fontFamily: ['Inter', 'system-ui', 'sans-serif'],
        ),
      ),
      seo: SEO(
        title: 'Minimalist Task App — Naki UI',
        description:
            'A sleek, minimalist to-do application built with Naki UI.',
        url: PlatformData().baseUrl,
        logo: 'https://makanakidev.github.io/naki_ui/assets/icon-dark.jpg',
      ),
      pageBuilder: (context, child) => const AppShell(),
    );
  }
}
8
likes
160
points
1.04k
downloads

Documentation

API reference

Publisher

verified publisherflutterful.dev

Weekly Downloads

A library of Material-inspired UI components and design utilities for building responsive web applications with Jaspr.

Homepage
Repository (GitHub)
View/report issues

Topics

#jaspr #jaspr-components #naki-ui #naki-components

License

MIT (license)

Dependencies

args, io, jaspr, jaspr_icons_pack, jaspr_router, path, ua_parser, universal_web, yaml

More

Packages that depend on naki_ui