TF-2042 Add event location information widget
(cherry picked from commit 935794e1ce2b5b4d4c0fd0c1295ec5c7ec3296c7)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
class EventLocationInformationWidgetStyles {
|
||||||
|
static const double maxWidth = 100;
|
||||||
|
static const double textSize = 16;
|
||||||
|
}
|
||||||
+46
@@ -0,0 +1,46 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:core/presentation/utils/style_utils.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:tmail_ui_user/features/email/presentation/styles/event_location_information_widget_styles.dart';
|
||||||
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
|
|
||||||
|
class EventLocationInformationWidget extends StatelessWidget {
|
||||||
|
|
||||||
|
final String locationEvent;
|
||||||
|
|
||||||
|
const EventLocationInformationWidget({
|
||||||
|
super.key,
|
||||||
|
required this.locationEvent
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
width: EventLocationInformationWidgetStyles.maxWidth,
|
||||||
|
child: Text(
|
||||||
|
AppLocalizations.of(context).where,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: EventLocationInformationWidgetStyles.textSize,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: AppColor.colorSubTitleEventActionText
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(child: Text(
|
||||||
|
locationEvent,
|
||||||
|
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||||
|
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: EventLocationInformationWidgetStyles.textSize,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Colors.black
|
||||||
|
),
|
||||||
|
))
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user