lumen_ui 1.0.0 copy "lumen_ui: ^1.0.0" to clipboard
lumen_ui: ^1.0.0 copied to clipboard

Lumen UI is a CLI tool for Flutter that generates modular UI components on demand to keep apps lightweight and maintainable.

example/lib/main.dart

import 'package:example/ui/basic_button/basic_button.dart';
import 'package:flutter/material.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Lumen UI',
      home: ExampleView(),
    );
  }
}

class ExampleView extends StatefulWidget {
  const ExampleView({super.key});

  @override
  State<ExampleView> createState() => _ExampleViewState();
}

class _ExampleViewState extends State<ExampleView> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Center(
          child: BasicButton(
            label: "Submit",
            variant: ButtonVariant.primary,
            size: ButtonSize.medium,
            onPressed: () => print("Button pressed!"),
          ),
        ),
      ),
    );
  }
}
1
likes
130
points
101
downloads

Publisher

unverified uploader

Weekly Downloads

Lumen UI is a CLI tool for Flutter that generates modular UI components on demand to keep apps lightweight and maintainable.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

args, flutter, intl, path, yaml

More

Packages that depend on lumen_ui