45 lines
1.1 KiB
Dart
45 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../tema/pluriwave_theme.dart';
|
|
|
|
class PluriWaveScaffold extends StatelessWidget {
|
|
const PluriWaveScaffold({
|
|
super.key,
|
|
required this.body,
|
|
this.appBar,
|
|
this.bottomNavigationBar,
|
|
this.floatingActionButton,
|
|
});
|
|
|
|
final PreferredSizeWidget? appBar;
|
|
final Widget body;
|
|
final Widget? bottomNavigationBar;
|
|
final Widget? floatingActionButton;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final t = context.pluriTokens;
|
|
return Scaffold(
|
|
backgroundColor: t.deepViolet,
|
|
appBar: appBar,
|
|
bottomNavigationBar: bottomNavigationBar,
|
|
floatingActionButton: floatingActionButton,
|
|
body: DecoratedBox(
|
|
decoration: BoxDecoration(
|
|
gradient: RadialGradient(
|
|
center: const Alignment(-0.75, -0.9),
|
|
radius: 1.25,
|
|
colors: [
|
|
t.electricMagenta.withValues(alpha: 0.22),
|
|
t.deepViolet,
|
|
const Color(0xFF10091B),
|
|
],
|
|
stops: const [0.0, 0.42, 1.0],
|
|
),
|
|
),
|
|
child: body,
|
|
),
|
|
);
|
|
}
|
|
}
|