Files
YungR1otz/lib/shared/widgets/riotz_shell.dart
Lucas Saburido cabf2025cd first commit
2026-05-13 16:26:45 +01:00

36 lines
770 B
Dart

import 'package:flutter/material.dart';
import '../../core/theme/app_colors.dart';
class RiotzShell extends StatelessWidget {
const RiotzShell({
required this.child,
this.title,
super.key,
});
final Widget child;
final String? title;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: title == null
? null
: AppBar(
title: Text(title!),
),
body: Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [AppColors.black, AppColors.blackRaised],
),
),
child: SafeArea(child: child),
),
);
}
}