63 lines
1.7 KiB
Dart
63 lines
1.7 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
import '../../domain/ports/theme_port.dart';
|
|
|
|
class WalletManagementScreen extends StatefulWidget {
|
|
final List<Widget> children;
|
|
|
|
const WalletManagementScreen({super.key, required this.children});
|
|
|
|
@override
|
|
State<WalletManagementScreen> createState() => WalletManagementScreenState();
|
|
|
|
}
|
|
|
|
class WalletManagementScreenState extends State<WalletManagementScreen>{
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = context.read<ThemePort>();
|
|
|
|
return Scaffold(
|
|
body: Stack(children: [
|
|
DecoratedBox(
|
|
decoration: BoxDecoration(
|
|
borderRadius: const BorderRadius.all(Radius.circular(30)),
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topLeft,
|
|
end: Alignment.bottomRight,
|
|
colors: theme.getCardColorFor(0)
|
|
),
|
|
),
|
|
child: SizedBox(width: double.infinity, height: 300),
|
|
),
|
|
Container(
|
|
margin: EdgeInsets.all(30),
|
|
child: Column(
|
|
spacing: 15,
|
|
children: [
|
|
Row(
|
|
spacing: 10,
|
|
children: [
|
|
IconButton(onPressed: ()=>Navigator.pop(context), icon: Icon(Icons.arrow_back_ios_outlined)),
|
|
Center(child: Column(children: [
|
|
//Text(widget.kid.name),
|
|
Text.rich(TextSpan(
|
|
text: "Sueldo disponible: ",
|
|
children: [
|
|
|
|
]))
|
|
]))
|
|
],
|
|
),
|
|
...widget.children
|
|
],
|
|
)
|
|
)
|
|
])
|
|
);
|
|
}
|
|
|
|
} |