영상 크기 조절
This commit is contained in:
@@ -319,7 +319,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Color(0xFFF5F5F5),
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
borderRadius: BorderRadius.circular(35),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.1), // 그림자 색상 및 투명도
|
||||
@@ -328,29 +328,34 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
),
|
||||
],
|
||||
),
|
||||
child: AspectRatio(
|
||||
aspectRatio: 16 / 9, // 고정 종횡비
|
||||
child: _isVideoInitialized
|
||||
? ClipRRect(
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
child: AspectRatio(
|
||||
aspectRatio: _videoController
|
||||
.value
|
||||
.aspectRatio,
|
||||
borderRadius: BorderRadius.circular(_getResponsiveSize(context, 30)),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.cover, // 영상이 카드를 가득 채우고 넘치는 부분 잘라냄
|
||||
child: SizedBox(
|
||||
width: _videoController.value.size.width,
|
||||
height: _videoController.value.size.height,
|
||||
child: VideoPlayer(_videoController),
|
||||
),
|
||||
),
|
||||
)
|
||||
: Column(
|
||||
: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
width: 180,
|
||||
height: 180,
|
||||
width: _getResponsiveSize(context, 180),
|
||||
height: _getResponsiveSize(context, 180),
|
||||
decoration: BoxDecoration(
|
||||
color: Color(0xFFF1F8E9),
|
||||
// color: Color(0xFFF1F8E9),
|
||||
borderRadius:
|
||||
BorderRadius.circular(12),
|
||||
BorderRadius.circular(_getResponsiveSize(context, 12)),
|
||||
border: Border.all(
|
||||
color: Color(0xFFC8E6C9),
|
||||
// color: Color(0xFFC8E6C9),
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
@@ -378,6 +383,8 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(height: _getResponsivePadding(context, 16)),
|
||||
// SizedBox(height: _getResponsivePadding(context, 16)), //26.06.26
|
||||
// 캐릭터 정보 + 설명 문구
|
||||
|
||||
Reference in New Issue
Block a user