gradient_image 0.1.0 copy "gradient_image: ^0.1.0" to clipboard
gradient_image: ^0.1.0 copied to clipboard

A new Flutter package project.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:gradient_image/gradient_image.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
        home: new Scaffold(
      appBar: new AppBar(
        brightness: Brightness.light,
        backgroundColor: Colors.transparent,
        centerTitle: true,
        elevation: 0.0,
        title: new Text(
          'Gradient Image',
          style: TextStyle(color: Colors.grey, fontWeight: FontWeight.w300),
        ),
      ),
      backgroundColor: Colors.white,
      body: Center(
        child: Container(
          child: GradientImage(
              height: 300,
              width: 300,
              startColor: Colors.lightBlue.withOpacity(0),
              endColor: Colors.blue.withOpacity(0.4),
              image:
                  NetworkImage('https://www.gstatic.com/webp/gallery3/1.png')),
        ),
      ),
    ));
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on gradient_image