Skip to content

Commit

Permalink
Remove: unused libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
ybmin committed Aug 29, 2023
1 parent 682e22a commit d72e830
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions lib/constants/theme.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

//primaryColor 지정 (색상코드: #6E3647)
final Map<int, Color> primaryColor1 = {
50: const Color.fromRGBO(110, 54, 71, .1),
100: const Color.fromRGBO(110, 54, 71, .2),
Expand All @@ -18,6 +19,7 @@ MaterialColor taxiPrimaryColor = MaterialColor(0xFF6E3647, primaryColor1);
ThemeData buildTheme() {
final base = ThemeData(
primarySwatch: taxiPrimaryColor,
primaryColor: const Color(0xFF6E3647),
textTheme: TextTheme(
//Dialog 제목 강조
titleMedium: GoogleFonts.roboto(
Expand Down
15 changes: 7 additions & 8 deletions lib/views/taxiView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ import 'dart:async';
import 'dart:io';

import 'package:firebase_dynamic_links/firebase_dynamic_links.dart';
import 'package:firebase_remote_config/firebase_remote_config.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:package_info/package_info.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:taxiapp/utils/fcmToken.dart';
Expand Down Expand Up @@ -459,7 +456,7 @@ class TaxiView extends HookWidget {
}),
)),
isTimerUp.value && isLoaded.value && isFcmInit.value
? Stack()
? const Stack()
: Scaffold(
body: FadeTransition(opacity: animation, child: loadingView())),
isMustUpdate.value
Expand All @@ -481,7 +478,8 @@ class TaxiView extends HookWidget {
TextSpan(
text: "출시",
style: TextStyle(
color: Color(0xFF6E3678),
color: Color(
0xFF6E3678), // TODO: primaryColor로 지정
fontWeight: FontWeight.bold)),
TextSpan(text: "되었습니다!")
]),
Expand All @@ -494,7 +492,7 @@ class TaxiView extends HookWidget {
leftButtonContent: "앱 종료하기",
)),
)
: Stack(),
: const Stack(),
isServerError.value
? Container(
color: const Color(0x66C8C8C8),
Expand All @@ -514,7 +512,8 @@ class TaxiView extends HookWidget {
TextSpan(
text: "실패",
style: TextStyle(
color: Color(0xFF6E3678),
color: Color(
0xFF6E3678), // TODO: primaryColor로 지정
fontWeight: FontWeight.bold)),
TextSpan(text: "했습니다.")
]),
Expand All @@ -528,7 +527,7 @@ class TaxiView extends HookWidget {
leftButtonContent: "앱 종료하기",
)),
)
: Stack()
: const Stack()
]));
}

Expand Down

0 comments on commit d72e830

Please sign in to comment.