fix: 尝试解决网络异常导致的白屏 issues #67
This commit is contained in:
@ -99,6 +99,9 @@ class _HistoryPageState extends State<HistoryPage> {
|
||||
future: _futureBuilderFuture,
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.connectionState == ConnectionState.done) {
|
||||
if (snapshot.data == null) {
|
||||
return const SliverToBoxAdapter(child: SizedBox());
|
||||
}
|
||||
Map data = snapshot.data;
|
||||
if (data['status']) {
|
||||
return Obx(
|
||||
|
||||
Reference in New Issue
Block a user