base_box 1.0.1 copy "base_box: ^1.0.1" to clipboard
base_box: ^1.0.1 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 BaseBox(
      tooltip: 'alarm',
      borderWidth: 1.8,
      borderColor: Colors.black,
      radius: 16,
      paddingAll: 20,
      color: Colors.red,
      child: Icon(Icons.access_alarm),
    );
  }
}
0
likes
160
points
24
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