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
|
scrollDirection: Axis.vertical, // Changer pour horizontal si nécessaire
|
||||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
crossAxisCount: 4, // Nombre de colonnes dans la grid
|
crossAxisCount: 4, // Nombre de colonnes dans la grid
|
||||||
crossAxisSpacing: 6.0, // Espace entre les colonnes
|
crossAxisSpacing: 4.0, // Espace entre les colonnes
|
||||||
mainAxisSpacing: 6.0, // Espace entre les lignes
|
mainAxisSpacing: 4.0, // Espace entre les lignes
|
||||||
childAspectRatio: 0.8, // Aspect ratio des enfants de la grid
|
childAspectRatio: 0.75, // Aspect ratio des enfants de la grid
|
||||||
),
|
),
|
||||||
itemCount: value.length,
|
itemCount: value.length,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
|
|||||||
@ -135,11 +135,12 @@ class EventListItem extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
AutoSizeText(
|
HtmlWidget(
|
||||||
eventAgenda.name!.length > 30 ? eventAgenda.name!.substring(0, 30) + " ..." : eventAgenda.name!,
|
eventAgenda.name!.length > 35 ? eventAgenda.name!.substring(0, 35) + " ..." : eventAgenda.name!,
|
||||||
style: TextStyle(fontSize: 14.0),
|
customStylesBuilder: (element) {
|
||||||
maxFontSize: 14,
|
return {'text-align': 'center'};
|
||||||
textAlign : TextAlign.center
|
},
|
||||||
|
textStyle: TextStyle(fontSize: 14.0),
|
||||||
),
|
),
|
||||||
AutoSizeText(
|
AutoSizeText(
|
||||||
eventAgenda.type!,
|
eventAgenda.type!,
|
||||||
|
|||||||
@ -147,12 +147,15 @@ class _EventPopupState extends State<EventPopup> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: size.height * 0.05,
|
height: size.height * 0.06,
|
||||||
child: AutoSizeText(
|
child: HtmlWidget(
|
||||||
|
widget.eventAgenda.name!,
|
||||||
|
textStyle: TextStyle(fontSize: 23.0),
|
||||||
|
),/*AutoSizeText(
|
||||||
widget.eventAgenda.name!,
|
widget.eventAgenda.name!,
|
||||||
style: TextStyle(fontSize: 23),
|
style: TextStyle(fontSize: 23),
|
||||||
maxFontSize: 23,
|
maxFontSize: 23,
|
||||||
),
|
),*/
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user