chore(app): 스플래시 권한 대기 시간을 3초로 축소
- 권한 요청 Future 타임아웃을 5초에서 3초로 줄여 스플래시 체류 시간을 단축
This commit is contained in:
@@ -247,9 +247,9 @@ class _SplashScreenState extends State<SplashScreen>
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _navigateToHome() {
|
void _navigateToHome() {
|
||||||
// 권한 요청이 지연되어도 스플래시(Splash) 화면이 멈추지 않도록 최대 5초만 대기한다.
|
// 권한 요청이 지연되어도 스플래시(Splash) 화면이 멈추지 않도록 최대 3초만 대기한다.
|
||||||
final permissionFuture = _ensurePermissions().timeout(
|
final permissionFuture = _ensurePermissions().timeout(
|
||||||
const Duration(seconds: 5),
|
const Duration(seconds: 3),
|
||||||
onTimeout: () {},
|
onTimeout: () {},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user