Files
prosappweb/lib/ui/cards/white_card.dart
T
Lizandro GuarnizoandClaude Sonnet 4.6 15175c1b91 replace: swap prosappweb content for prosapp_web_app (more complete version)
prosapp_web_app has chat, dashboard, calendar, support, 13 providers and
Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb.
Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 15:26:32 -05:00

50 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class WhiteCard extends StatelessWidget {
final String? title;
final Widget child;
final double? width;
const WhiteCard({super.key, this.title, required this.child, this.width});
@override
Widget build(BuildContext context) {
return Container(
width: width, // width == null ? null : width,
margin: const EdgeInsets.all(8),
padding: const EdgeInsets.all(10),
decoration: buildBoxDecoration(),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (title != null) ...[
FittedBox(
fit: BoxFit.contain,
child: Text(
title!,
style: GoogleFonts.roboto(
fontSize: 15,
fontWeight: FontWeight.bold,
),
),
),
const Divider()
],
child
],
),
);
}
BoxDecoration buildBoxDecoration() {
return BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(5),
boxShadow: [
BoxShadow(color: Colors.black.withOpacity(0.05), blurRadius: 5)
],
);
}
}