mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-07 02:27:40 +08:00
fix: use root user, for now
This commit is contained in:
@@ -29,6 +29,15 @@ class _SearchPageState extends ConsumerState<SearchPage> {
|
||||
|
||||
List<Widget> res = searchList.when(
|
||||
data: (data) {
|
||||
if (data.isEmpty) {
|
||||
return [Container(
|
||||
height: MediaQuery.of(context).size.height * 0.6,
|
||||
alignment: Alignment.center,
|
||||
child: const Text(
|
||||
"啥都没有...",
|
||||
style: TextStyle(fontSize: 16),
|
||||
))];
|
||||
}
|
||||
var cards = List<Widget>.empty(growable: true);
|
||||
for (final item in data) {
|
||||
cards.add(Card(
|
||||
|
||||
Reference in New Issue
Block a user