Skip to content

Commit

Permalink
M3-107 Refactor : 코드 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdals802 committed Jul 3, 2024
1 parent debef1b commit 0dc9984
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 80 deletions.
5 changes: 3 additions & 2 deletions lib/controllers/android_walking_controller.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import 'dart:async';

import 'package:get/get.dart';
import 'package:pedometer/pedometer.dart';
import 'package:get_storage/get_storage.dart';
import 'package:pedometer/pedometer.dart';


final String LOCAL_STORE_STEP_KEY = 'pastSteps';
const String LOCAL_STORE_STEP_KEY = 'pastSteps';

class AndroidWalkingController extends GetxController {
static double averageStride = 0.6;
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

import 'package:get/get.dart';
import 'package:ground_flip/utils/android_notification.dart';

import '../utils/android_notification.dart';
import 'screens/main_screen.dart';

Future<void> main() async {
Expand Down
1 change: 0 additions & 1 deletion lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:workmanager/workmanager.dart';

import '../controllers/navigation_controller.dart';
import '../widgets/common/naviagtion_bar.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/screens/map_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import '../controllers/permission_controller.dart';
import '../controllers/walking_controller.dart';
import '../widgets/map/android_step_stats.dart';
import '../widgets/map/mode_change_button.dart';
import '../widgets/map/step_stats.dart';

class MapScreen extends StatelessWidget {
const MapScreen({super.key});
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/search_group.dart
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import 'package:flutter/material.dart';


72 changes: 0 additions & 72 deletions pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
args:
dependency: transitive
description:
name: args
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
url: "https://pub.dev"
source: hosted
version: "2.5.0"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -73,14 +65,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.8"
dbus:
dependency: transitive
description:
name: dbus
sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac"
url: "https://pub.dev"
source: hosted
version: "0.7.10"
device_info_plus:
dependency: transitive
description:
Expand Down Expand Up @@ -190,30 +174,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.2"
flutter_local_notifications:
dependency: "direct main"
description:
name: flutter_local_notifications
sha256: ced76d337f54de33d7d9f06092137b4ac2da5079e00cee8a11a1794ffc7c61c6
url: "https://pub.dev"
source: hosted
version: "17.2.1"
flutter_local_notifications_linux:
dependency: transitive
description:
name: flutter_local_notifications_linux
sha256: "33f741ef47b5f63cc7f78fe75eeeac7e19f171ff3c3df054d84c1e38bedb6a03"
url: "https://pub.dev"
source: hosted
version: "4.0.0+1"
flutter_local_notifications_platform_interface:
dependency: transitive
description:
name: flutter_local_notifications_platform_interface
sha256: "85f8d07fe708c1bdcf45037f2c0109753b26ae077e9d9e899d55971711a4ea66"
url: "https://pub.dev"
source: hosted
version: "7.2.0"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
Expand Down Expand Up @@ -544,14 +504,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.2.1"
petitparser:
dependency: transitive
description:
name: petitparser
sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
url: "https://pub.dev"
source: hosted
version: "6.0.2"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -693,14 +645,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.0"
timezone:
dependency: transitive
description:
name: timezone
sha256: "2236ec079a174ce07434e89fcd3fcda430025eb7692244139a9cf54fdcf1fc7d"
url: "https://pub.dev"
source: hosted
version: "0.9.4"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -749,14 +693,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.3"
workmanager:
dependency: "direct main"
description:
name: workmanager
sha256: ed13530cccd28c5c9959ad42d657cd0666274ca74c56dea0ca183ddd527d3a00
url: "https://pub.dev"
source: hosted
version: "0.5.2"
xdg_directories:
dependency: transitive
description:
Expand All @@ -765,14 +701,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.4"
xml:
dependency: transitive
description:
name: xml
sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
url: "https://pub.dev"
source: hosted
version: "6.5.0"
sdks:
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ dependencies:
health: ^10.2.0
fl_chart: ^0.68.0
dropdown_button2: ^2.3.9
flutter_local_notifications: ^17.2.1
workmanager: ^0.5.2
pedometer: ^4.0.1
get_storage: ^2.1.1
flutter_foreground_task: ^6.5.0
Expand Down

0 comments on commit 0dc9984

Please sign in to comment.