wurong
1 year ago
11 changed files with 93 additions and 15 deletions
After Width: | Height: | Size: 335 KiB |
@ -0,0 +1,72 @@ |
|||||||
|
import 'dart:convert'; |
||||||
|
|
||||||
|
import 'package:dio/dio.dart'; |
||||||
|
import 'package:flutter/cupertino.dart'; |
||||||
|
import 'package:flutter/material.dart'; |
||||||
|
import 'package:flutter_easyloading/flutter_easyloading.dart'; |
||||||
|
import 'package:huixiang/generated/l10n.dart'; |
||||||
|
import 'package:huixiang/retrofit/data/base_data.dart'; |
||||||
|
import 'package:huixiang/retrofit/data/user_info.dart'; |
||||||
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
||||||
|
import 'package:huixiang/utils/font_weight.dart'; |
||||||
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
||||||
|
import 'package:shared_preferences/shared_preferences.dart'; |
||||||
|
|
||||||
|
class LoadingPage extends StatefulWidget { |
||||||
|
@override |
||||||
|
State<StatefulWidget> createState() { |
||||||
|
return _LoadingPage(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
class _LoadingPage extends State<LoadingPage> { |
||||||
|
|
||||||
|
|
||||||
|
@override |
||||||
|
Widget build(BuildContext context) { |
||||||
|
return Scaffold( |
||||||
|
backgroundColor: Colors.white, |
||||||
|
body: Container( |
||||||
|
width: double.infinity, |
||||||
|
margin: EdgeInsets.only(top: 100,left: 10), |
||||||
|
child: Column( |
||||||
|
mainAxisAlignment: MainAxisAlignment.start, |
||||||
|
crossAxisAlignment: CrossAxisAlignment.start, |
||||||
|
children: [ |
||||||
|
GestureDetector( |
||||||
|
onTap: (){ |
||||||
|
EasyLoading.show(indicator:Image.asset( |
||||||
|
"assets/gif/loading_logo.gif", |
||||||
|
width: 250, |
||||||
|
height: 250, |
||||||
|
)); |
||||||
|
Future.delayed(Duration(seconds: 10), () { |
||||||
|
EasyLoading.dismiss(); |
||||||
|
}); |
||||||
|
}, |
||||||
|
child: Container( |
||||||
|
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10), |
||||||
|
color: Colors.blue, |
||||||
|
child: Text("纯图"), |
||||||
|
), |
||||||
|
), |
||||||
|
GestureDetector( |
||||||
|
onTap: (){ |
||||||
|
EasyLoading.show(); |
||||||
|
Future.delayed(Duration(seconds: 10), () { |
||||||
|
EasyLoading.dismiss(); |
||||||
|
}); |
||||||
|
}, |
||||||
|
child: Container( |
||||||
|
margin: EdgeInsets.only(top:20), |
||||||
|
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 10), |
||||||
|
color: Colors.blue, |
||||||
|
child: Text("图文"), |
||||||
|
), |
||||||
|
) |
||||||
|
], |
||||||
|
), |
||||||
|
), |
||||||
|
); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue