exui 0.0.19 copy "exui: ^0.0.19" to clipboard
exui: ^0.0.19 copied to clipboard

Build your UI faster. No boilerplate, no dependencies—just powerful widget extensions.

example/lib/main.dart

import 'package:exui/cupertino.dart';
import 'package:flutter/material.dart';

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

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

  @override
  State<ExampleApp> createState() => _ExampleAppState();
}

class _ExampleAppState extends State<ExampleApp> {
  int _currentIndex = 0;

  final List<Widget> _pages = [
    'This is text'
        .styledText(color: Colors.white, fontSize: 24)
        .paddingAll(16)
        .redBox()
        .clipSquircle()
        .center(),
    'Second page here'
        .styledText(color: Colors.white, fontSize: 24)
        .paddingAll(16)
        .blueBox()
        .clipSquircle()
        .center(),
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: _pages[_currentIndex],
        bottomNavigationBar: BottomNavigationBar(
          currentIndex: _currentIndex,
          onTap: (index) => setState(() => _currentIndex = index),
          items: [
            Icons.home.icon().bottomNavigationItem('home'),
            Icons.pages.icon().bottomNavigationItem('page2'),
          ],
        ),
      ),
    );
  }
}
28
likes
0
points
97
downloads

Publisher

verified publisherjozz.biz

Weekly Downloads

Build your UI faster. No boilerplate, no dependencies—just powerful widget extensions.

Repository (GitHub)
View/report issues

Topics

#flutter #widget #extension #ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on exui