mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-19 15:45:26 +02:00
35 lines
719 B
Dart
35 lines
719 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:quid_faciam_hodie/utils/theme.dart';
|
|
|
|
class HelpContentText extends StatelessWidget {
|
|
final String text;
|
|
final Widget icon;
|
|
|
|
const HelpContentText({
|
|
Key? key,
|
|
required this.text,
|
|
required this.icon,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: <Widget>[
|
|
Expanded(
|
|
flex: 3,
|
|
child: icon,
|
|
),
|
|
const Spacer(flex: 1),
|
|
Expanded(
|
|
flex: 14,
|
|
child: Text(
|
|
text,
|
|
style: getBodyTextTextStyle(context),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|