code_nest_ui 0.0.8 copy "code_nest_ui: ^0.0.8" to clipboard
code_nest_ui: ^0.0.8 copied to clipboard

A reusable Flutter UI component library featuring adaptive switches, customizable alert dialogs, cached network images, and other handy widgets designed to accelerate your app development.

๐Ÿ“ฑ code_nest_ui #

code_nest_ui is a Flutter package providing a set of reusable and customizable UI components. It helps developers quickly build modern, clean, and responsive user interfaces in their Flutter applications.


โœจ Features #

  • Beautiful pre-styled widgets
  • Consistent design system
  • Easy-to-integrate components
  • Fully responsive and theme-friendly

๐Ÿ–ผ๏ธ CodeNest Validators #

๐Ÿ“ง Email Validator #

Validates a well-formed email input field.

Email Validator


๐Ÿ” Password Validator #

Checks for minimum length and optionally special characters.

Password Validator


๐Ÿง Username Validator #

Ensures username is not empty and meets length requirements.

Username Validator


๐Ÿ”ข Number Validator #

Accepts only numeric values as input.

Number Validator


๐Ÿ”‘ PIN Validator #

Validates a 4- or 6-digit numeric PIN input.

PIN Validator


๐ŸŒ URL Validator #

Checks if the input is a valid URL.

URL Validator


๐Ÿงฑ CodeNest Spacers #

code_nest_ui provides handy spacer widgets to improve layout readability and maintain consistent spacing across your app UI.

โ†•๏ธ CodeNestVerticalSpacer #

Adds vertical space between widgets.

Vertical Spacer


โ†”๏ธ CodeNestHorizontalSpacer #

Adds horizontal space between widgets.

Horizontal Spacer


๐Ÿ”” SnackBar Utilities โ€“ Success & Failure Toasts #

The code_nest_ui package includes quick and easy utilities to show consistent feedback to users using Flutter's SnackBar.

โœ… Success SnackBar #

Use this to notify users of a successful action (e.g., form submitted, data saved).

Success Snack Bar


โŒ Failure SnackBar #

Use this to indicate an error or failed operation (e.g., validation failed, network error).

Failure Snack Bar


๐Ÿ“‹ CodeNestLogger #

The code_nest_ui package includes lightweight, categorized logging utilities to help you debug, trace responses, and monitor app behavior consistently.

Use these loggers throughout your app to improve visibility during development or debugging.

โŒ Error Logger #

Logs critical errors such as exceptions, failures, or crashes.

Error Logger


โ„น๏ธ Info Logger #

Logs general-purpose messages for debugging or tracking flow.

Info Logger


๐Ÿ” Response Logger #

Logs formatted API or service responses (JSON, status codes, etc.).

Response Logger


โš ๏ธ Warning Logger #

Logs non-critical issues that may need attention (e.g., deprecated API usage, retry needed).

Warning Logger


๐Ÿ“ Typography โ€“ CodeNestText #

The CodeNestText widget in code_nest_ui makes it easy to apply consistent, customizable, and styled text across your Flutter application.


๐Ÿ”ค Normal Text #

Displays styled plain text with support for font size, color, weight, and alignment.

Normal Text


๐Ÿงฉ Rich Text #

Displays multiple text spans with varied styles in a single line or paragraph.

Rich Text


๐Ÿ–‹๏ธ Outlined Text #

Shows text with a stroke (outline) effect, great for bold headers or banner text.

Text Outlined


๐Ÿ’ฌ CodeNestTooltip #

The CodeNestTooltip widget enhances accessibility and UX by providing helpful hover or long-press messages on any UI element.

Use it to show contextual information, labels, or descriptions without cluttering your layout.


๐Ÿ› ๏ธ ToolTip #

Displays helpful text when the user hovers (web/desktop) or long-presses (mobile) on a widget.

ToolTip


๐Ÿ”˜ CodeNestSwitch #

The CodeNestSwitch widget provides a reusable and consistent toggle switch UI for enabling or disabling settings, toggles, and preferences across your app.

It wraps Flutter's native Switch widget but adds support for cleaner syntax and design-system consistency.


๐Ÿ”ณ Switch #

Use the switch to represent on/off states like dark mode, notifications, etc.

Switch


๐Ÿงญ CodeNest UI Navigation #

The code_nest_ui package provides a collection of pre-styled, reusable navigation widgets that help structure and navigate your app seamlessly across mobile, tablet, and desktop platforms.


๐Ÿงฑ CodeNestAppBar #

A consistent top app bar across screens.

App Bar


๐Ÿงฑ CodeNestBottomNavBar #

A tab-like bottom navigation for switching main sections.

Bottom Nav Bar


๐Ÿงฑ CodeNestDrawer #

A collapsible side drawer for secondary or grouped items.

Drawer


๐Ÿงฑ CodeNestNavigationBar (Material 3) #

A Material You navigation bar with active indicators.

Navigation Bar


๐Ÿงฑ CodeNestNavigationRail #

A side-positioned navigation rail for large screens.

Navigation Rail


๐Ÿงฑ CodeNestTabBar #

A top-positioned tab bar for switching between content sections.

Tab Bar


๐Ÿ–ผ๏ธ CodeNestImage #

The code_nest_ui package provides multiple image handling widgets that make it easy to display images from local assets, network sources, SVGs, and cached content with graceful fallbacks and styling.


๐Ÿ“ฆ Asset Image #

Display images stored locally in your app's assets folder.

Asset Image


๐ŸŒ Network Image #

Display a basic image from a URL.

Network Image


โšก Cached Network Image #

Display network images with caching and loading placeholder/fallback support.

Cached Network Image


๐Ÿงพ SVG Image #

Render SVG images from assets or network.

SVG Image


๐Ÿ”„ CodeNestLoaders #

The code_nest_ui package includes beautiful and reusable loading widgets to indicate progress, waiting states, or content placeholders across your app.


๐Ÿ”˜ Circular Progress Loader #

A customizable circular loading indicator.

Circular Loader


โœจ Shimmer Loader #

Displays animated placeholders using a shimmer effect.

Shimmer Loader


๐ŸŽž๏ธ CodeNestLottieAnimations #

code_nest_ui includes pre-configured animation widgets using Lottie to add beautiful, lightweight, vector-based animations to your Flutter app.


๐ŸŽจ Lottie Asset Animation #

Plays a .json Lottie file from your local assets/ directory.

Lottie Asset Animation


๐ŸŽจ Lottie Network Animation #

Plays a .json Lottie animation from a network URL.

Lottie Network Animation


๐Ÿ”˜ CodeNestButtons #

The code_nest_ui package provides a collection of pre-styled and reusable button components designed for speed, consistency, and customization.


๐Ÿ”น Filled Button #

A high-emphasis button for primary actions.

Filled Button


๐Ÿ”น Filled Icon Button #

A filled button with an icon and label.

Filled Icon Button


๐Ÿ”น Icon Button (Material) #

Simple tappable icon using Material icons.

Icon Button (Material)


๐Ÿ”น Icon Button (SVG) #

Tappable icon button with an SVG icon.

Icon Button (SVG)


๐ŸŸฆ Outlined Button #

A low-emphasis action button with a border.

Outlined Button


๐ŸŸฆ Icon Outlined Button #

An outlined button with an icon and label.

Icon Outlined Button


๐ŸŸฆ Icon Outlined Button (SVG) #

An outlined button with an SVG icon and label.

Icon Outlined Button (SVG)


๐Ÿงฉ Segmented Button #

A set of mutually exclusive or multi-select button segments.

Segmented Button


โž– CodeNestDivider #

The code_nest_ui package offers a set of customizable dividers to visually separate content and improve layout clarity.


๐ŸŸซ Solid Horizontal Divider #

A classic horizontal line divider with customizable thickness, color, and margin.

Solid Horizontal Divider


๐ŸŸช Dashed Vertical Divider #

A vertical dashed line, often used between two sections in a Row.

Dashed Vertical Divider


๐ŸŸช Dotted Divider #

A dotted horizontal line to subtly separate sections.

Dotted Divider


๐Ÿ“ฆ CodeNestContainer #

CodeNestContainer is a flexible, reusable layout widget that wraps Flutter's Container with enhanced customization options. It helps maintain consistency in spacing, decoration, and theming across your app.


๐ŸŸช Container #

Best for: wrapping content, sections, cards, buttons, headers.

Container


๐Ÿ“ CodeNestFormField #

The code_nest_ui package provides beautifully styled, reusable form fields to speed up form creation and enforce design consistency.


๐Ÿ”ค Text Form Field #

A customizable input field for single-line text input.

Text Form Field


๐Ÿ”ฝ Dropdown Form Field #

A dropdown selector styled like a text field.

Dropdown Text Form Field


๐Ÿ“„ Multi-line Text Form Field #

A multi-line input field for longer text.

Multi-line Text Form Field


๐Ÿ” Password Text Form Field #

A secure text field with toggle visibility.

Password Text Form Field


๐Ÿ“† Picker Text Form Field #

A read-only input that opens a picker (e.g., date, time, custom selection).

Picker Text Form Field


๐Ÿš€ Getting Started #

To use this package, add the following to your pubspec.yaml:

dependencies:
  code_nest_ui: ^0.0.8

Then run:

flutter pub get

๐Ÿ“š Usage Example #

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: CodeNestAppBar(
          title: 'CodeNest UI Demo',
        ),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              CodeNestText(
                text: 'Welcome to CodeNest UI!',
                style: TextStyle(
                  fontSize: 24,
                  fontWeight: FontWeight.bold,
                ),
              ),
              CodeNestVerticalSpacer(height: 20),
              CodeNestTextFormField(
                labelText: 'Enter your email',
                validator: CodeNestValidators.email,
              ),
              CodeNestVerticalSpacer(height: 16),
              CodeNestFilledButton(
                text: 'Get Started',
                onPressed: () {
                  CodeNestSnackBar.showSuccess(
                    context,
                    'Welcome to CodeNest UI!',
                  );
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}

๐ŸŽจ Customization #

All CodeNest UI components are fully customizable and follow Flutter's theming system. You can customize colors, fonts, and styling to match your app's design.

// Example: Custom button styling
CodeNestFilledButton(
  text: 'Custom Button',
  backgroundColor: Colors.purple,
  textColor: Colors.white,
  borderRadius: 12.0,
  onPressed: () {},
)

๐Ÿ“– Documentation #

For detailed documentation and API reference, visit our documentation site.

๐Ÿค Contributing #

We welcome contributions! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ› Issues #

If you encounter any issues or have suggestions, please open an issue on GitHub.

๐Ÿ“„ License #

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Author #

Imran - GitHub

๐ŸŒŸ Support #

If you like this package, please give it a โญ on GitHub and ๐Ÿ‘ on pub.dev!

๐Ÿ“ง Contact #

For questions or support, feel free to reach out:


Happy Coding with CodeNest UI! ๐Ÿš€

1
likes
110
points
438
downloads

Publisher

unverified uploader

Weekly Downloads

A reusable Flutter UI component library featuring adaptive switches, customizable alert dialogs, cached network images, and other handy widgets designed to accelerate your app development.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, dropdown_button2, flutter, flutter_svg, logger, lottie, shimmer

More

Packages that depend on code_nest_ui