import 'package:flutter/material.dart'; class BottomTextWidget extends StatelessWidget { final String text; const BottomTextWidget({super.key, required this.text}); @override Widget build(BuildContext context) { return Positioned( bottom: 0, left: 0, right: 0, child: Container( decoration: BoxDecoration( color: Theme.of(context).scaffoldBackgroundColor, gradient: LinearGradient( begin: Alignment.topCenter, end: Alignment.bottomCenter, colors: [Colors.transparent, Colors.black.withOpacity(0.4)], stops: const [0, 1], ), ), child: Text( text, style: const TextStyle( fontSize: 13.0, color: Colors.white, shadows: [ Shadow(offset: Offset(0.5, 0.9), blurRadius: 3.0) ], ), textAlign: TextAlign.center, ), ), ); } }