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

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

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

  • Add more container to the package.