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

A new Flutter package which helps develop to user container with gradient.

Gradient container package lets you add a beautiful container to your Flutter app.

Features #

There are a number of properties that you can modify:

  • height
  • width
  • title
  • subtitle
  • gradient
  • color

Getting started #

Import the package and use it in your flutter app

import 'package:gradient_with_container/gradient_with_container.dart';

Usage #


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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: GradientContainerScreen(
          title: 'Hello word',
          subtitle: 'This is new container package',
          color1: Colors.orange,
          color2: Colors.red[200],
        ),
      ),
    );
  }
}

Additional information #

  • Add onTap for functions. Now,you can specify the onTap and specify function.

  • Change font and color style for text. Change color by specifying textcolor and 'subtitlecolor' properties.

  • Add more container to the package.

1
likes
140
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package which helps develop to user container with gradient.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on gradient_with_container