mirror of
https://github.com/hmalik144/days_left_flutter.git
synced 2025-12-10 03:05:21 +00:00
- Implementation of firebase - Implementation of dependency injection Took 11 hours 26 minutes
27 lines
647 B
Dart
27 lines
647 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class TextDetailWidget extends StatelessWidget {
|
|
final String labelText;
|
|
final String bodyText;
|
|
|
|
TextDetailWidget(this.labelText, this.bodyText);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
Text(
|
|
labelText,
|
|
style: TextStyle(color: Colors.blue),
|
|
),
|
|
Text(
|
|
bodyText,
|
|
style: TextStyle(color: Colors.black),
|
|
)
|
|
]);
|
|
}
|
|
}
|