mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
try fix height and font size
This commit is contained in:
parent
91ae2c3c01
commit
b1dce4142d
@ -1,5 +1,6 @@
|
|||||||
import 'package:auto_size_text/auto_size_text.dart';
|
import 'package:auto_size_text/auto_size_text.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
@ -105,9 +106,10 @@ class EventListItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(width: 5.0),
|
const SizedBox(width: 5.0),
|
||||||
Text(
|
Text(
|
||||||
eventAgenda.dateFrom!.isAtSameMomentAs(eventAgenda.dateTo!) ? "${formatter.format(eventAgenda.dateFrom!)}": "${formatter.format(eventAgenda.dateFrom!)} - ${formatter.format(eventAgenda.dateTo!)}", // TODO
|
eventAgenda.dateFrom!.isAtSameMomentAs(eventAgenda.dateTo!) ? "${formatter.format(eventAgenda.dateFrom!)}": "${formatter.format(eventAgenda.dateFrom!)} - ${formatter.format(eventAgenda.dateTo!)}",
|
||||||
style: const TextStyle(
|
style: TextStyle(
|
||||||
color: kBackgroundColor,
|
color: kBackgroundColor,
|
||||||
|
fontSize: 12
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -120,7 +122,9 @@ class EventListItem extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Container(
|
||||||
|
height: size.height * 0.2,
|
||||||
|
constraints: BoxConstraints(maxHeight: 120),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: size.width,
|
width: size.width,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
@ -134,19 +138,17 @@ class EventListItem extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Align(
|
AutoSizeText(
|
||||||
alignment: Alignment.center,
|
eventAgenda.name!.length > 40 ? eventAgenda.name!.substring(0, 40) + " ..." : eventAgenda.name!,
|
||||||
child: AutoSizeText(
|
style: TextStyle(fontSize: 14.0),
|
||||||
eventAgenda.name!,
|
maxFontSize: 14,
|
||||||
style: TextStyle(fontSize: 14.0),
|
textAlign : TextAlign.center
|
||||||
maxFontSize: 14,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
AutoSizeText(
|
AutoSizeText(
|
||||||
eventAgenda.type!,
|
eventAgenda.type!,
|
||||||
maxFontSize: 12.0,
|
maxFontSize: 12.0,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 11.0,
|
fontSize: 10.0,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -244,8 +244,7 @@ class _EventPopupState extends State<EventPopup> {
|
|||||||
markers: markers,
|
markers: markers,
|
||||||
),
|
),
|
||||||
): SizedBox(),
|
): SizedBox(),
|
||||||
Container(
|
SizedBox(
|
||||||
color: Colors.green,
|
|
||||||
width: size.width * 0.28,
|
width: size.width * 0.28,
|
||||||
height: size.height * 0.35,
|
height: size.height * 0.35,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user