nebux_design_system 0.1.18 copy "nebux_design_system: ^0.1.18" to clipboard
nebux_design_system: ^0.1.18 copied to clipboard

A comprehensive Flutter design system package that provides consistent theming, typography, spacing, and UI components for Nebux applications.

example/example.dart

import 'package:flutter/material.dart';
import 'package:nebux_design_system/nebux_design_system.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: NebuxTheme.createThemeData(
        isDark: false,
        colors: NebuxColors.standardLight(),
        fontSize: NebuxFontSize.standard(),
        typography: NebuxTypography.standard(),
      ),
      darkTheme: NebuxTheme.createThemeData(
        isDark: true,
        colors: NebuxColors.standardDark(),
        fontSize: NebuxFontSize.standard(),
        typography: NebuxTypography.standard(),
      ),
      home: const ExampleScreen(),
    );
  }
}

class ExampleScreen extends StatelessWidget {
  const ExampleScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return NbxScaffold(
      widgetName: 'ExampleScreen',
      appBarConfig: AppBarConfig(title: 'Nebux Design System'),
      body: Padding(
        padding: const EdgeInsets.all(16),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            Text('Welcome', style: context.nebuxTypography.heading),
            heightSpace16,
            NbxButton(
              text: 'Filled Button',
              onPressed: () {},
              styleConfig: ButtonStyleConfig(variant: ButtonVariant.filled),
            ),
            heightSpace12,
            NbxButton(
              text: 'Outline Button',
              onPressed: () {},
              styleConfig: ButtonStyleConfig(variant: ButtonVariant.outline),
            ),
            heightSpace16,
            NbxTextFieldWidget(
              NbxInputParameters(
                hintText: 'Enter your email',
                labelText: 'Email',
                inputType: NbxInputType.email,
                isRequired: true,
                context: context,
              ),
            ),
            heightSpace12,
            NbxTextFieldWidget(
              NbxInputParameters(
                hintText: 'Enter your password',
                labelText: 'Password',
                inputType: NbxInputType.password,
                showEyeIcon: true,
                isRequired: true,
                context: context,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
150
points
584
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive Flutter design system package that provides consistent theming, typography, spacing, and UI components for Nebux applications.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

app_shimmer, cached_network_image, collection, double_back_to_exit, flutter, flutter_skeleton_ui, freezed_annotation, google_fonts, json_annotation, toml

More

Packages that depend on nebux_design_system