29 lines
670 B
Dart
29 lines
670 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class AppBackend extends StatelessWidget {
|
|
final Widget child;
|
|
|
|
const AppBackend({super.key, required this.child});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: double.infinity,
|
|
padding: EdgeInsets.all(15),
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [
|
|
Color(0xffFFFFFF),
|
|
Color(0xffF7fefD),
|
|
Color(0xffF0FDFA),
|
|
],
|
|
stops: [0, 0.6, 1],
|
|
),
|
|
),
|
|
child: SafeArea(child: child),
|
|
);
|
|
}
|
|
}
|