KonectarApp/lib/widgets/eventdetailscontainer.dart

74 lines
2.5 KiB
Dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:konectar_events/utils/util.dart';
class EventDetailsContainer extends StatelessWidget {
bool isEventDetail = false;
EventDetailsContainer({super.key, required this.isEventDetail});
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: isEventDetail
? MediaQuery.of(context).size.width
: isTablet
? MediaQuery.of(context).size.width * 0.50
: MediaQuery.of(context).size.width * 0.65,
child: Text(
'2024 Hematology/Oncology Pharmacy Association Annual Conference (HOPA)',
style: TextStyle(
color: Colors.blue,
fontWeight: FontWeight.bold,
fontSize: 17,
),
maxLines: 2,
softWrap: true,
overflow: TextOverflow.ellipsis,
),
),
SizedBox(
width: isTablet
? MediaQuery.of(context).size.width * 0.25
: MediaQuery.of(context).size.width * 0.5,
child: Text(
'Tampa,Florida,United States',
style: TextStyle(color: Colors.black, fontSize: 14),
),
),
SizedBox(
width: isEventDetail
? MediaQuery.of(context).size.width
: isTablet
? MediaQuery.of(context).size.width * 0.25
: MediaQuery.of(context).size.width * 0.35,
child: Text(
'Organizer: Hematology/Oncology Pharmacy Association (HOPA)',
style: TextStyle(color: Colors.black, fontSize: 14),
),
),
isEventDetail
? Container(
padding: EdgeInsets.only(top: 10),
width: isTablet
? MediaQuery.of(context).size.width * 0.96
: MediaQuery.of(context).size.width * 0.75,
child: Text(
'website link',
style: TextStyle(
decoration: TextDecoration.underline,
decorationColor: Colors.blue,
color: Colors.blue,
fontStyle: FontStyle.italic,
fontSize: isTablet ? 16 : 14),
),
)
: SizedBox.shrink(),
],
);
}
}