v1 release
This commit is contained in:
commit
cb24b68069
116 changed files with 4913 additions and 0 deletions
27
lib/presentation/widgets/image_banner.dart
Normal file
27
lib/presentation/widgets/image_banner.dart
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import "package:flutter/material.dart";
|
||||
|
||||
class ImageBanner extends StatelessWidget {
|
||||
final String imgSrc;
|
||||
final String text;
|
||||
|
||||
const ImageBanner({
|
||||
Key? key,
|
||||
required this.imgSrc,
|
||||
required this.text,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
alignment: Alignment.center,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset(imgSrc, width: 250, height: 250),
|
||||
const SizedBox(height: 10),
|
||||
Text(text, style: Theme.of(context).textTheme.bodyLarge)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue