Skip to content

Releases: adityathakurxd/fancy_containers

fancy_containers: ^0.0.5

20 Mar 16:05
6315019
Compare
Choose a tag to compare
  • Fixed an issue with onTap causing null value.
  • title is now a required property.
  • The title is now centred if a subtitle is not provided.
  • An example app is added to check implementation.

Example

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
          child: FancyContainer(
        title: "Hello World",
        titleStyle: TextStyle(color: Colors.white),
      )),
    );
  }
}

fancy_containers: ^0.0.4

26 Jul 09:15
Compare
Choose a tag to compare

With this new release, you can now:

  • Specify Text color using the textcolor property and Subtitle color using subtitlecolor.
  • Added onTap (v0.0.3) for specifying functions.
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: FancyContainer(
          onTap: (){
            print("Hello World");
          },
          color1: Colors.lightGreenAccent,
          color2: Colors.lightBlue,
          title: 'Hello World',
          textcolor: Colors.white,
          subtitle: 'This is a new package',
          subtitlecolor: Colors.white,
        ),
      ),
    );

fancy_containers: ^0.0.2

25 Jul 11:03
b4888de
Compare
Choose a tag to compare

Fancy container package lets you add a beautiful gradient container to your Flutter app.
Check it out on pub.dev here.

There are a number of properties that you can modify:

  • height
  • width
  • title
  • subtitle
  • gradient (color1 and color2)

class FancyScreen extends StatelessWidget {  
  const FancyScreen({Key? key}) : super(key: key);  
  
  @override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      body: Center(  
        child: const FancyContainer(  
          title: 'Hello World',  
          color1: Colors.lightGreenAccent,  
          color2: Colors.lightBlue,  
          subtitle: 'This is a new package',  
        ),  
      ),  
    );  
  }  
}