apptomate_custom_container 0.0.1 copy "apptomate_custom_container: ^0.0.1" to clipboard
apptomate_custom_container: ^0.0.1 copied to clipboard

CustomContainer is a reusable Flutter widget that provides a container with customizable properties, including size, border radius, background color, shadow effects, and padding/margin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:apptomate_custom_container/apptomate_custom_container.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 MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            CustomContainer(
              height: 100,
              width: 200,
              child: const Center(
                child: Text(
                  'Custom Container',
                  style: TextStyle(fontSize: 18),
                ),
              ),
            ),
            const SizedBox(height: 20),
            CustomContainer(
              height: 120,
              width: 250,
              borderRadius: 16,
              backgroundColor: Colors.blueAccent,
              shadowColor: Colors.blueAccent,
              blurRadius: 10,
              spreadRadius: 2,
              offset: const Offset(0, 4),
              child: const Center(
                child: Text(
                  'Container Shadow',
                  style: TextStyle(
                    color: Colors.white,
                    fontSize: 16,
                    fontWeight: FontWeight.bold,
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
140
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

CustomContainer is a reusable Flutter widget that provides a container with customizable properties, including size, border radius, background color, shadow effects, and padding/margin.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on apptomate_custom_container