Releases: adityathakurxd/fancy_containers
Releases · adityathakurxd/fancy_containers
fancy_containers: ^0.0.5
- Fixed an issue with onTap causing null value.
title
is now a required property.- The
title
is now centred if asubtitle
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
With this new release, you can now:
- Specify Text color using the
textcolor
property and Subtitle color usingsubtitlecolor
. - 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
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)