1. 이미지 및 UI 개선

2. UI 텍스트 한국어 번역
3. 환경설정 화면 상세 구현 (SettingScreen)
This commit is contained in:
KIMGYEONGRAN
2025-12-02 17:47:22 +09:00
parent acb297fec1
commit 0dea41c143
9 changed files with 995 additions and 436 deletions

View File

@@ -35,12 +35,6 @@ class RentalProcessScreen extends StatelessWidget {
),
backgroundColor: _cardBackgroundColor,
elevation: 0,
actions: [
IconButton(
icon: const Icon(Icons.more_vert, color: _mainTextColor),
onPressed: () {},
),
],
),
body: SingleChildScrollView(
child: Padding(
@@ -50,7 +44,7 @@ class RentalProcessScreen extends StatelessWidget {
children: [
_buildStatusCard(context),
const SizedBox(height: 24),
_buildProcessSectionTitle('헬멧 대여 순서'),
_buildProcessSectionTitle('헬멧 대여'),
const SizedBox(height: 12),
Container(
decoration: BoxDecoration(
@@ -66,13 +60,13 @@ class RentalProcessScreen extends StatelessWidget {
_buildDivider(),
_buildStepRow(3, '헬멧 꺼내기', Icons.outbox),
_buildDivider(),
_buildStepRow(4, '주행 시작 !', Icons.sentiment_satisfied_alt,
_buildStepRow(4, '주행 시작', Icons.sentiment_satisfied_alt,
showDivider: false),
],
),
),
const SizedBox(height: 24),
_buildProcessSectionTitle('헬멧 반납 과정'),
_buildProcessSectionTitle('헬멧 반납'),
const SizedBox(height: 12),
Container(
decoration: BoxDecoration(
@@ -135,7 +129,7 @@ class RentalProcessScreen extends StatelessWidget {
borderRadius: BorderRadius.circular(12),
),
child: Image.asset(
'assets/images/open.png',
'assets/images/top.png',
fit: BoxFit.contain,
errorBuilder: (context, error, stackTrace) => const Icon(
Icons.inventory_2,
@@ -149,10 +143,11 @@ class RentalProcessScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text('NOW',
style: TextStyle(color: _subTextColor, fontSize: 12)),
style: TextStyle(color: Colors.black, fontSize: 12)),
const SizedBox(height: 8),
SizedBox(
width: double.infinity,
height: 68,
child: ElevatedButton(
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
@@ -175,7 +170,7 @@ class RentalProcessScreen extends StatelessWidget {
fontWeight: FontWeight.bold, fontSize: 16)),
),
),
const SizedBox(height: 12),
const SizedBox(height: 10),
Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(vertical: 12),
@@ -185,7 +180,7 @@ class RentalProcessScreen extends StatelessWidget {
),
child: const Center(
child: Text(
'ERROR:\nLOCK FAIL',
'센서 경고 : 잠금 실패',
style: TextStyle(
color: _primaryOrange,
fontWeight: FontWeight.bold,
@@ -271,12 +266,7 @@ class RentalProcessScreen extends StatelessWidget {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('SENSOR ERROR:',
style: TextStyle(
color: _primaryOrange,
fontWeight: FontWeight.bold,
fontSize: 16)),
Text('LOCK FAILURE',
Text('센서 오류 : 잠금 실패',
style: TextStyle(
color: _primaryOrange,
fontWeight: FontWeight.bold,
@@ -300,12 +290,12 @@ class RentalProcessScreen extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text('LOGS',
const Text('로그',
style: TextStyle(
color: _mainTextColor, fontWeight: FontWeight.bold)),
InkWell(
onTap: () => _showLogHistory(context),
child: Text('VIEW MORE >',
child: Text('더보기 >',
style: TextStyle(color: _subTextColor, fontSize: 12)),
),
],
@@ -315,12 +305,12 @@ class RentalProcessScreen extends StatelessWidget {
children: [
const Icon(Icons.check_circle, color: _mainBlueColor, size: 16),
const SizedBox(width: 8),
const Text('Available: Door Fully Closed',
const Text('Available: 문 닫힘',
style: TextStyle(color: _mainTextColor)),
],
),
Padding(
padding: const EdgeInsets.only(left: 24.0, top: 4),
padding: const EdgeInsets.only(left: 210, top: 4),
child: Text('(2025-11-19)/(08:58)',
style: TextStyle(color: _subTextColor, fontSize: 12)),
),
@@ -364,15 +354,15 @@ class RentalProcessScreen extends StatelessWidget {
child: ListView(
padding: const EdgeInsets.all(20),
children: [
_buildLogItem("08:58:33", "Door Fully Closed",
_buildLogItem("08:58:33", "문 열림",
Icons.door_front_door, _mainBlueColor),
_buildLogItem("08:58:30", "Helmet Returned (Sensor A)",
_buildLogItem("08:58:30", "헬멧 반납 확인(센서 A)",
Icons.check_circle_outline, _mainBlueColor),
_buildLogItem("08:55:12", "User Unlocked Door",
_buildLogItem("08:55:12", "사용자 문 잠금 해제",
Icons.lock_open, _mainTextColor),
_buildLogItem("08:30:00", "UV Sanitization Complete",
_buildLogItem("08:30:00", "UV 살균 완료",
Icons.cleaning_services, _mainBlueColor),
_buildLogItem("08:00:00", "System Boot Up",
_buildLogItem("08:00:00", "시스템 가동 중",
Icons.power_settings_new, _subTextColor),
],
),