27 lines
552 B
Dart
27 lines
552 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ResultNotice extends StatelessWidget {
|
|
final Color color;
|
|
final String info;
|
|
|
|
const ResultNotice({
|
|
Key? key,
|
|
required this.color,
|
|
required this.info,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Expanded(
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
color: color,
|
|
child: Text(
|
|
info,
|
|
style: TextStyle(
|
|
fontSize: 54, color: Colors.white, fontWeight: FontWeight.bold),
|
|
),
|
|
));
|
|
}
|
|
}
|