flutter_widgetz 0.0.6 copy "flutter_widgetz: ^0.0.6" to clipboard
flutter_widgetz: ^0.0.6 copied to clipboard

outdated

A set of Flutter widgets I use in various projects. Including date and checkbox inputs, bottom navigation bar, color picker, divider and more!

example/lib/main.dart

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

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

class _Main extends StatelessWidget {
  const _Main({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Widgetz Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const _MyApp(),
    );
  }
}

class _MyApp extends StatelessWidget {
  const _MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CustomScaffold(
      appBar: AppBar(
        title: const Text('Hello World!'),
      ),
      bottomNavigationBar: CustomBottomNavigationBar(
        onTap: (_) {},
        items: const <BottomNavigationBarItem>[
          BottomNavigationBarItem(
            label: 'Home',
            icon: Icon(Icons.home),
          ),
          BottomNavigationBarItem(
            label: 'Settings',
            icon: Icon(Icons.settings),
          ),
        ],
      ),
      body: CustomBody(
        padding: const EdgeInsets.all(20),
        child: SpacedColumn(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: <Widget>[
            const CustomPlaceholder(
              text: 'Hi There',
            ),
            const RatingBar(
              onChanged: print,
              value: 3.5,
            ),
            CustomElevatedButton(
              onPressed: () {},
              text: 'A Button',
            ),
          ],
        ),
      ),
    );
  }
}
13
likes
0
points
972
downloads

Publisher

verified publishermj12358.dev

Weekly Downloads

A set of Flutter widgets I use in various projects. Including date and checkbox inputs, bottom navigation bar, color picker, divider and more!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_widgetz