mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 11:39:46 +08:00
remove
This commit is contained in:
@@ -73,23 +73,12 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
|||||||
}
|
}
|
||||||
List<ExpansionTile> list = List.empty(growable: true);
|
List<ExpansionTile> list = List.empty(growable: true);
|
||||||
for (final k in m.keys.toList().reversed) {
|
for (final k in m.keys.toList().reversed) {
|
||||||
bool _customTileExpanded = false;
|
|
||||||
var seasonList = ExpansionTile(
|
var seasonList = ExpansionTile(
|
||||||
tilePadding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
|
tilePadding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
|
||||||
childrenPadding: const EdgeInsets.fromLTRB(50, 0, 50, 0),
|
childrenPadding: const EdgeInsets.fromLTRB(50, 0, 50, 0),
|
||||||
initiallyExpanded: k == 0 ? false : true,
|
initiallyExpanded: k == 0 ? false : true,
|
||||||
title: Text("第 $k 季"),
|
title: Text("第 $k 季"),
|
||||||
trailing: Icon(
|
|
||||||
_customTileExpanded
|
|
||||||
? Icons.arrow_drop_down_circle
|
|
||||||
: Icons.arrow_drop_down,
|
|
||||||
),
|
|
||||||
children: m[k]!,
|
children: m[k]!,
|
||||||
onExpansionChanged: (bool expanded) {
|
|
||||||
setState(() {
|
|
||||||
_customTileExpanded = expanded;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
list.add(seasonList);
|
list.add(seasonList);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user