pharmacy_mobile/lib/widgets/slogan_widget.dart
2025-02-04 16:24:48 +08:00

40 lines
1 KiB
Dart

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