- 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),
)),
);
}
}