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

This package is help to create gradient container.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Gradient Container Exapmle',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const DemoScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Gradient Container Exapmle'),
      ),
      body: const Center(
        child: GradientContainer(
          height: 150,
          width: 150,
          colors: [Colors.red, Colors.pink],
        ),
      ),
    );
  }
}
7
likes
110
pub points
49%
popularity

Publisher

unverified uploader

This package is help to create gradient container.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on gradient_container