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

Flutter Awesome Containers :)

Flutter Awesome Containers #

Flutter Awesome container package used for gradient container with custom child in your Flutter app.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  flutter_awesome_containers: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:flutter_awesome_containers/flutter_awesome_containers.dart';

Example #


class FlutterAwesomeContainer extends StatefulWidget {
  @override
  State<FlutterAwesomeContainer> createState() => _FlutterAwesomeContainerState();
}

class _FlutterAwesomeContainerState extends State<FlutterAwesomeContainer> {


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: FlutterFlutterAwesomeContainer(
            colorOne: Colors.teal[900],
            colorTwo: Colors.tealAccent,
            onTap: (){
              print("OnTap Event Fired");
            },
            child: Center(
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.center,
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: const [
                    Text("Hello world",style: TextStyle(color: Colors.white,fontSize: 20),),
                    Text("This is your custom child container",style: TextStyle(color: Colors.white,fontSize: 14),),
                  ],
                )
            ),
          ),
        ),
      ),
    );
  }
}
example preview
1
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Flutter Awesome Containers :)

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_awesome_containers