From 76e500e3d0b1399fc4fcb257f48592d08030ea4e Mon Sep 17 00:00:00 2001 From: Matias de Andrea Date: Tue, 29 Aug 2023 18:11:13 +0200 Subject: [PATCH] feat: improve logo image --- assets/images/logo.svg | 276 +----------------- .../components/assets/common_image.dart | 24 ++ 2 files changed, 25 insertions(+), 275 deletions(-) create mode 100644 lib/ui/widgets/components/assets/common_image.dart diff --git a/assets/images/logo.svg b/assets/images/logo.svg index 427273f..48b28f2 100644 --- a/assets/images/logo.svg +++ b/assets/images/logo.svg @@ -1,275 +1 @@ - - - - + \ No newline at end of file diff --git a/lib/ui/widgets/components/assets/common_image.dart b/lib/ui/widgets/components/assets/common_image.dart new file mode 100644 index 0000000..c52f768 --- /dev/null +++ b/lib/ui/widgets/components/assets/common_image.dart @@ -0,0 +1,24 @@ +import 'package:flutter/widgets.dart'; + +class CommonImage extends StatelessWidget { + final String imageName; + final double? width; + final double? height; + + const CommonImage({ + super.key, + required this.imageName, + this.width = 72, + this.height = 72, + }); + + @override + Widget build(BuildContext context) { + return Image.asset( + 'assets/images/$imageName.png', + width: width, + height: height, + fit: BoxFit.cover, + ); + } +}