first commit
This commit is contained in:
35
lib/shared/widgets/riotz_shell.dart
Normal file
35
lib/shared/widgets/riotz_shell.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
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),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user