diff --git a/assets/images/background.png b/assets/images/background.png new file mode 100644 index 0000000..e8dc271 Binary files /dev/null and b/assets/images/background.png differ diff --git a/assets/videos/angry_img.mp4 b/assets/videos/angry_img.mp4 new file mode 100644 index 0000000..0d5962c Binary files /dev/null and b/assets/videos/angry_img.mp4 differ diff --git a/assets/videos/basic_cut.mp4 b/assets/videos/basic_cut.mp4 new file mode 100644 index 0000000..b325009 Binary files /dev/null and b/assets/videos/basic_cut.mp4 differ diff --git a/assets/videos/basic_img.mp4 b/assets/videos/basic_img.mp4 new file mode 100644 index 0000000..2308cd3 Binary files /dev/null and b/assets/videos/basic_img.mp4 differ diff --git a/assets/videos/thinking_img.mp4 b/assets/videos/thinking_img.mp4 new file mode 100644 index 0000000..47d0ab6 Binary files /dev/null and b/assets/videos/thinking_img.mp4 differ diff --git a/lib/main.dart b/lib/main.dart index b5a6150..477449f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -57,7 +57,7 @@ class _SmartGardenScreenState extends State { } void _initializeVideo() { - _videoController = VideoPlayerController.asset('assets/videos/basic.mp4') + _videoController = VideoPlayerController.asset('assets/videos/basic_img.mp4') ..initialize().then((_) { _videoController.setLooping(true); _videoController.setVolume(0.0); @@ -140,9 +140,16 @@ class _SmartGardenScreenState extends State { @override Widget build(BuildContext context) { return Scaffold( - backgroundColor: Colors.white, - body: Row( - children: [ + backgroundColor: Colors.transparent, + body: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage('assets/images/background.png'), + fit: BoxFit.cover, + ), + ), + child: Row( + children: [ // 좌측 캐릭터 영역 (60%) Expanded( flex: 6, @@ -355,7 +362,7 @@ class _SmartGardenScreenState extends State { ), ), child: const Text( - '푸미 일지', + '푸미와 대화하기', style: TextStyle( fontSize: 22, fontWeight: FontWeight.w600, @@ -602,7 +609,7 @@ class _SmartGardenScreenState extends State { ), ], ), - ); + )); } } @@ -648,7 +655,7 @@ class _ChatBubble extends StatelessWidget { : Color(0xFFEEEEEE), borderRadius: BorderRadius.circular(8), ), - child: Text( + child: SelectableText( message.text, style: TextStyle( fontSize: 20, diff --git a/pubspec.yaml b/pubspec.yaml index 81bdcd9..642c98d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -67,9 +67,15 @@ flutter: - assets/videos/know.mp4 - assets/videos/thinking.mp4 - assets/videos/thirst.mp4 - - assets/images/profile.png - # To add assets to your application, add an assets section, like this: + - assets/videos/basic_img.mp4 + - assets/videos/angry_img.mp4 + - assets/videos/thinking_img.mp4 + + - assets/images/profile.png + - assets/images/background.png + + # To add assets to your application, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg