coloredcontainer 0.0.2 copy "coloredcontainer: ^0.0.2" to clipboard
coloredcontainer: ^0.0.2 copied to clipboard

This package wraps any flutter widget inside the container with specified colors.

example/example.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Local Pacakges',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: ColoredContainer(
          child: Text("Some text data"),
        ),
      ),
    );
  }
}
3
likes
140
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

This package wraps any flutter widget inside the container with specified colors.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on coloredcontainer