12345678910111213141516171819202122232425262728293031323334353637 |
- 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>[
- TextSpan(
- text: '$question: ',
- style: const TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 22.0,
- )),
- TextSpan(
- text: '$result',
- style: const TextStyle(
- fontSize: 20.0,
- ),
- ),
- ],
- ),
- );
- }
- }
|