Merge branch 'master' of https://git.oa00.com/austin_dai/project_telephony
# Conflicts: # lib/ui/home/content_connect_page.dartmaster
commit
c6d424ceaa
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 348 B |
After Width: | Height: | Size: 23 KiB |
@ -0,0 +1,19 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:equatable/equatable.dart';
|
||||
part 'state_model.g.dart';
|
||||
|
||||
|
||||
@JsonSerializable()
|
||||
class StateModel extends Equatable{
|
||||
bool sms;
|
||||
bool phone;
|
||||
factory StateModel.fromJson(Map<String, dynamic> json) =>_$StateModelFromJson(json);
|
||||
|
||||
|
||||
StateModel({
|
||||
required this.sms,
|
||||
required this.phone,
|
||||
});
|
||||
@override
|
||||
List<Object?> get props => [sms,phone];
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'state_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
StateModel _$StateModelFromJson(Map<String, dynamic> json) => StateModel(
|
||||
sms: json['sms'] as bool,
|
||||
phone: json['phone'] as bool,
|
||||
);
|
@ -0,0 +1,7 @@
|
||||
// import 'package:flutter/material.dart';
|
||||
//
|
||||
// class PhoneProvider extends ChangeNotifier{
|
||||
// bool sms=false;
|
||||
// bool phone=false;
|
||||
//
|
||||
// }
|
@ -0,0 +1,38 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:project_telephony/utils/headers.dart';
|
||||
|
||||
class Loading extends StatefulWidget {
|
||||
Loading({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_LoadingState createState() => _LoadingState();
|
||||
}
|
||||
|
||||
class _LoadingState extends State<Loading> {
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
// TODO: implement initState
|
||||
super.initState();
|
||||
|
||||
Future.delayed(const Duration(seconds: 3),(){
|
||||
//3秒后跳转到其他路由
|
||||
Navigator.of(context).pushReplacementNamed("/TabNavigator");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
//启动图片
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body:Padding(padding: EdgeInsets.only(left: 148.w,top:1318.w ),child: Image.asset(
|
||||
Assets.images.Start.path,width:434.sp,height:148.sp , fit: BoxFit.fill),)
|
||||
,);
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in new issue