Skip to content

Commit

Permalink
refactor. intro 비디오 변경 및 로그인 코드 수정 #77
Browse files Browse the repository at this point in the history
  • Loading branch information
JoGeumJu committed Apr 3, 2024
1 parent f8a944c commit 603fd10
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file modified assets/videos/intro.mp4
Binary file not shown.
8 changes: 4 additions & 4 deletions lib/models/login_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ class LoginModel {
options: Options(
headers: {'androidId': mobileId, 'FCMToken': fcmToken}));
if (response.data['responseCode'] == "200_OK") {
saveAccessToken(response.headers['authorization']![0]);
saveRefreshToken(response.headers['refreshtoken']![0]);
Get.offNamed(AppRoutes.introVideo);
await saveAccessToken(response.headers['authorization']![0]);
await saveRefreshToken(response.headers['refreshtoken']![0]);
await Get.offNamed(AppRoutes.introVideo);
} else if (response.data['responseCode'] == "201_CREATED") {
Get.find<UserController>().setRegisterEmail(response.data['email']);
Get.offNamed(AppRoutes.select);
await Get.offNamed(AppRoutes.select);
} else {
SnackBarWidget(SnackBarType.error, '허가되지 않은 게정이에요');
}
Expand Down
2 changes: 2 additions & 0 deletions lib/screens/video_player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:meonghae_front/config/app_routes.dart';
import 'package:meonghae_front/models/login_model.dart';
import 'package:meonghae_front/themes/custom_color.dart';
import 'package:video_player/video_player.dart';

class VideoPlayerScreen extends StatefulWidget {
Expand Down Expand Up @@ -39,6 +40,7 @@ class _VideoPlayerScreenState extends State<VideoPlayerScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: CustomColor.brown1,
body: Stack(
children: [
Center(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: meonghae_front
description: 애완동물 스케줄 관리를 위한 어플리케이션
publish_to:

version: 2.0.2+9
version: 2.0.3+10

environment:
sdk: ">=3.0.0-322.0.dev <4.0.0"
Expand Down

0 comments on commit 603fd10

Please sign in to comment.