You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
2.2 KiB

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("图文"),
),
)
],
),
),
);
}
}