update
This commit is contained in:
parent
75cbdbf2fa
commit
7b89a8a471
4 changed files with 68 additions and 27 deletions
40
lib/widgets/slogan_widget.dart
Normal file
40
lib/widgets/slogan_widget.dart
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
class SloganWidget extends StatelessWidget {
|
||||
const SloganWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
children: [
|
||||
_buildSloganItem("Easy to Use"),
|
||||
const Gap(8),
|
||||
_buildSloganItem("Access to Medicine"),
|
||||
const Gap(8),
|
||||
_buildSloganItem("Home Delivery"),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildSloganItem(String text) {
|
||||
return Row(
|
||||
children: [
|
||||
const Gap(48),
|
||||
FaIcon(
|
||||
size: 24,
|
||||
FontAwesomeIcons.circleCheck,
|
||||
color: const Color.fromRGBO(112, 239, 70, 0.6),
|
||||
),
|
||||
const Gap(16), // Add some space between the icon and the text
|
||||
Text(
|
||||
text,
|
||||
style: GoogleFonts.outfit(
|
||||
color: const Color.fromRGBO(112, 239, 70, 0.6), fontSize: 16, fontWeight: FontWeight.w500),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue