HydroNutrify_Ari_e41221567/lib/ui/shared/branding_header.dart

41 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
class BrandingHeader extends StatelessWidget {
final String title;
final String subtitle;
const BrandingHeader({
super.key,
this.title = 'HidroNutrify',
this.subtitle = 'Hydro Made Easy.',
});
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
title,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.displayMedium?.copyWith(
color: Colors.white,
fontWeight: FontWeight.bold,
shadows: [Shadow(color: Colors.black, blurRadius: 3)],
),
),
const SizedBox(height: 16),
Text(
subtitle,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: Colors.white,
letterSpacing: 1.2,
shadows: [Shadow(color: Colors.black26, blurRadius: 2)],
),
),
],
);
}
}