forked from firka/student-legacy
fixed visual bugs
This commit is contained in:
parent
a53b8c7fdb
commit
11d99a4cf9
@ -108,7 +108,7 @@ List<Widget> sortDateWidgets(
|
|||||||
widget: AbsenceGroupTile(
|
widget: AbsenceGroupTile(
|
||||||
absenceTiles,
|
absenceTiles,
|
||||||
showDate: !cst,
|
showDate: !cst,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 6.0),
|
padding: const EdgeInsets.symmetric(horizontal: 4.0),
|
||||||
),
|
),
|
||||||
date: absenceTileWidgets.first.date,
|
date: absenceTileWidgets.first.date,
|
||||||
key:
|
key:
|
||||||
|
@ -38,12 +38,13 @@ class AbsenceTile extends StatelessWidget {
|
|||||||
child: Material(
|
child: Material(
|
||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: padding ??
|
// padding: padding ??
|
||||||
(group
|
// (group
|
||||||
? EdgeInsets.zero
|
// ? EdgeInsets.zero
|
||||||
: const EdgeInsets.symmetric(
|
// : const EdgeInsets.symmetric(
|
||||||
horizontal: 0.0,
|
// horizontal: 0.0,
|
||||||
)),
|
// )),
|
||||||
|
padding: padding ?? EdgeInsets.zero,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
visualDensity: VisualDensity.compact,
|
visualDensity: VisualDensity.compact,
|
||||||
|
@ -31,20 +31,21 @@ class AbsenceGroupTile extends StatelessWidget {
|
|||||||
child: Material(
|
child: Material(
|
||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: padding ??
|
padding: padding ?? EdgeInsets.zero,
|
||||||
const EdgeInsets.symmetric(horizontal: 0.0, vertical: 0.0),
|
|
||||||
child: AbsenceGroupContainer(
|
child: AbsenceGroupContainer(
|
||||||
child: RoundedExpansionTile(
|
child: RoundedExpansionTile(
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(10)),
|
borderRadius: BorderRadius.circular(12)),
|
||||||
childrenPadding: const EdgeInsets.symmetric(horizontal: 8.0),
|
childrenPadding: EdgeInsets.zero,
|
||||||
|
contentPadding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 12.0, vertical: 0),
|
||||||
tileColor: Colors.transparent,
|
tileColor: Colors.transparent,
|
||||||
duration: const Duration(milliseconds: 250),
|
duration: const Duration(milliseconds: 250),
|
||||||
trailingDuration: 0.5,
|
trailingDuration: 0.5,
|
||||||
trailing: const Icon(FeatherIcons.chevronDown),
|
trailing: const Icon(FeatherIcons.chevronDown),
|
||||||
leading: Container(
|
leading: Container(
|
||||||
width: 44.0,
|
width: 39.0,
|
||||||
height: 44.0,
|
height: 39.0,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
color: color.withOpacity(.25),
|
color: color.withOpacity(.25),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user