29 lines
735 B
Dart
29 lines
735 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class HomeHeader extends StatelessWidget {
|
|
const HomeHeader({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
margin: EdgeInsets.only(top: 30, bottom: 40),
|
|
child: Column(
|
|
children: [
|
|
Text(
|
|
"Food Safety Scanner",
|
|
style: Theme.of(context).textTheme.titleLarge,
|
|
),
|
|
Container(
|
|
margin: EdgeInsets.only(top: 10),
|
|
child: Text(
|
|
"Upload a photo to check if this food is safe for you",
|
|
style: Theme.of(context).textTheme.labelMedium,
|
|
textAlign: TextAlign.center,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|