36 lines
770 B
Dart
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),
|
|
),
|
|
);
|
|
}
|
|
}
|