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


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';


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

  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: GradientContainerScreen(
          title: 'Hello word',
          subtitle: 'This is new container package',

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.