ux4g_flutter_design_system 0.1.0 copy "ux4g_flutter_design_system: ^0.1.0" to clipboard
ux4g_flutter_design_system: ^0.1.0 copied to clipboard

discontinuedreplaced by: ux4g_flutter_components

Flutter implementation of the UX4G design system components and foundations.

UX4G Flutter Design System #

Flutter package for the UX4G design system, with reusable foundations and UI components ported from the Android Compose implementation.

Included #

  • foundations: colors, typography, spacing, radii, icons
  • inputs: buttons, checkbox, toggle, dropdown, selection, input field, search field, text area, slider, OTP Input, Slot Grid
  • feedback: toast, tooltip, loader, modal, bottom sheet, Empty State, Biometric Verification
  • navigation and progress: pagination, steppers
  • data display: card, badge, tag, chips, avatar, divider, Result Row, Social Links, File Upload

Installation #

Add the package to pubspec.yaml:

dependencies:
  ux4g_flutter_design_system:
    git:
      url: https://github.com/ux4g-negd/ux4g-flutter-design-system.git
      ref: main

Then run:

flutter pub get

Basic usage #

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

void main() {
  runApp(
    const Ux4gTheme(
      child: MaterialApp(
        home: DemoScreen(),
      ),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(16),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Ux4gButton(
              onPressed: () {},
              text: 'Primary action',
            ),
            const SizedBox(height: 16),
            Ux4gCard(
              title: 'Title',
              subtitle: 'Subtitle',
              body: 'Body content',
              footerType: Ux4gCardFooterType.primaryOnly,
              primaryButtonText: 'Continue',
              onPrimaryClick: () {},
            ),
          ],
        ),
      ),
    );
  }
}

Showcase #

A full component showcase app is included in example/lib/main.dart.

Run it with:

cd example
flutter run

Notes #

  • Components are being aligned with the UX4G Android Compose design system.
  • Some APIs expose both simple and rich variants where Android has separate usage patterns.
  • The example app is the best reference for current component coverage and configuration.

Repository #

2
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter implementation of the UX4G design system components and foundations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

camera, connectivity_plus, flutter, flutter_svg, google_mlkit_commons, google_mlkit_face_detection, image_picker, permission_handler

More

Packages that depend on ux4g_flutter_design_system