mirror of
https://github.com/hmalik144/days_left_flutter.git
synced 2025-12-10 03:05:21 +00:00
- Introduction on base view model and stateless widget classes
- Implementation of firebase - Implementation of dependency injection Took 11 hours 26 minutes
This commit is contained in:
26
lib/widgets/TextDetailWidget.dart
Normal file
26
lib/widgets/TextDetailWidget.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
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),
|
||||
)
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user