base_box 1.0.2 copy "base_box: ^1.0.2" to clipboard
base_box: ^1.0.2 copied to clipboard

A customizable Flutter widget for building reusable and consistent UIs with less boilerplate.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: const MyHomePage());
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: BaseBox(
        onTap: () {},
        marginAll: 20,
        height: 50,
        width: 50,
        tooltip: 'alarm',
        borderWidth: 1.8,
        borderColor: Colors.black,
        radius: 16,
        color: Colors.red,
        child: Icon(Icons.access_alarm),
      ),
    );
  }
}
0
likes
160
points
27
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter widget for building reusable and consistent UIs with less boilerplate.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on base_box