import 'package:flutter/material.dart'; /// Description: 底部文字 /// Time : 2021年12月03日 Friday /// Author : liuyuqi.gov@msncn class BottomSheetText extends StatelessWidget { const BottomSheetText({ required this.question, required this.result, }); final String question; final String result; @override Widget build(BuildContext context) { return RichText( text: TextSpan( style: DefaultTextStyle.of(context).style, children: [ TextSpan( text: '$question: ', style: const TextStyle( fontWeight: FontWeight.bold, fontSize: 22.0, )), TextSpan( text: '$result', style: const TextStyle( fontSize: 20.0, ), ), ], ), ); } }