mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
test size and html name..
This commit is contained in:
parent
8882b708ff
commit
ff2b741374
@ -121,9 +121,9 @@ class _AgendaView extends State<AgendaView> {
|
||||
scrollDirection: Axis.vertical, // Changer pour horizontal si nécessaire
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: 4, // Nombre de colonnes dans la grid
|
||||
crossAxisSpacing: 6.0, // Espace entre les colonnes
|
||||
mainAxisSpacing: 6.0, // Espace entre les lignes
|
||||
childAspectRatio: 0.8, // Aspect ratio des enfants de la grid
|
||||
crossAxisSpacing: 4.0, // Espace entre les colonnes
|
||||
mainAxisSpacing: 4.0, // Espace entre les lignes
|
||||
childAspectRatio: 0.75, // Aspect ratio des enfants de la grid
|
||||
),
|
||||
itemCount: value.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
|
||||
@ -135,11 +135,12 @@ class EventListItem extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
AutoSizeText(
|
||||
eventAgenda.name!.length > 30 ? eventAgenda.name!.substring(0, 30) + " ..." : eventAgenda.name!,
|
||||
style: TextStyle(fontSize: 14.0),
|
||||
maxFontSize: 14,
|
||||
textAlign : TextAlign.center
|
||||
HtmlWidget(
|
||||
eventAgenda.name!.length > 35 ? eventAgenda.name!.substring(0, 35) + " ..." : eventAgenda.name!,
|
||||
customStylesBuilder: (element) {
|
||||
return {'text-align': 'center'};
|
||||
},
|
||||
textStyle: TextStyle(fontSize: 14.0),
|
||||
),
|
||||
AutoSizeText(
|
||||
eventAgenda.type!,
|
||||
|
||||
@ -147,12 +147,15 @@ class _EventPopupState extends State<EventPopup> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: size.height * 0.05,
|
||||
child: AutoSizeText(
|
||||
height: size.height * 0.06,
|
||||
child: HtmlWidget(
|
||||
widget.eventAgenda.name!,
|
||||
textStyle: TextStyle(fontSize: 23.0),
|
||||
),/*AutoSizeText(
|
||||
widget.eventAgenda.name!,
|
||||
style: TextStyle(fontSize: 23),
|
||||
maxFontSize: 23,
|
||||
),
|
||||
),*/
|
||||
),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user