36 lines
914 B
Dart
36 lines
914 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../core/theme/app_colors.dart';
|
|
import '../../core/theme/app_text_styles.dart';
|
|
|
|
class HomeScreen extends StatelessWidget {
|
|
final String role;
|
|
|
|
const HomeScreen({super.key, required this.role});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return DecoratedBox(
|
|
decoration: const BoxDecoration(
|
|
gradient: LinearGradient(
|
|
colors: [AppColors.softBlueBg, Colors.white],
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
),
|
|
),
|
|
child: Center(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(24),
|
|
child: Text(
|
|
role == 'ROLE_ADMIN'
|
|
? 'Selamat Datang Admin!'
|
|
: 'Mode Walk Guide Siap!',
|
|
textAlign: TextAlign.center,
|
|
style: AppTextStyles.heading,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|