Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
apps4av committed Aug 16, 2024
1 parent 368c0ec commit 7d9d12d
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions lib/data/main_database_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import 'package:latlong2/latlong.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';

import '../destination.dart';
import '../saa.dart';
import 'package:avaremp/destination/destination.dart';
import 'package:avaremp/saa.dart';
import 'cifp.dart';

class MainDatabaseHelper {
Expand Down
24 changes: 12 additions & 12 deletions lib/data/realm_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ import 'package:avaremp/data/weather_winds.dart';
import 'package:avaremp/wnb.dart';
import 'package:latlong2/latlong.dart';
import 'package:realm/realm.dart';
import '../aircraft.dart';
import '../checklist.dart';
import '../destination.dart';
import '../plan/plan_route.dart';
import '../storage.dart';
import '../weather/airep.dart';
import '../weather/airsigmet.dart';
import '../weather/metar.dart';
import '../weather/notam.dart';
import '../weather/taf.dart';
import '../weather/tfr.dart';
import '../weather/winds_aloft.dart';
import 'package:avaremp/aircraft.dart';
import 'package:avaremp/checklist.dart';
import 'package:avaremp/destination/destination.dart';
import 'package:avaremp/plan/plan_route.dart';
import 'package:avaremp/storage.dart';
import 'package:avaremp/weather/airep.dart';
import 'package:avaremp/weather/airsigmet.dart';
import 'package:avaremp/weather/metar.dart';
import 'package:avaremp/weather/notam.dart';
import 'package:avaremp/weather/taf.dart';
import 'package:avaremp/weather/tfr.dart';
import 'package:avaremp/weather/winds_aloft.dart';

class RealmHelper {

Expand Down
4 changes: 2 additions & 2 deletions lib/airport.dart → lib/destination/airport.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'dart:math';

import 'package:avaremp/destination.dart';
import 'destination.dart';
import 'package:avaremp/geo_calculations.dart';
import 'package:avaremp/storage.dart';
import 'package:avaremp/weather/metar.dart';
import 'package:flutter/material.dart';
import 'package:latlong2/latlong.dart';

import 'constants.dart';
import '../constants.dart';

class Airport {

Expand Down
4 changes: 2 additions & 2 deletions lib/airway.dart → lib/destination/airway.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:avaremp/destination.dart';
import 'destination.dart';
import 'package:avaremp/geo_calculations.dart';
import 'package:avaremp/plan/waypoint.dart';
import 'package:latlong2/latlong.dart';

import 'data/main_database_helper.dart';
import '../data/main_database_helper.dart';


// airway calculations
Expand Down
2 changes: 1 addition & 1 deletion lib/destination.dart → lib/destination/destination.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:latlong2/latlong.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';

import 'destination_calculations.dart';
import 'data/main_database_helper.dart';
import 'package:avaremp/data/main_database_helper.dart';

class Destination {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:math';

import 'package:avaremp/destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'package:latlong2/latlong.dart';

import 'geo_calculations.dart';
import '../geo_calculations.dart';

class DestinationCalculations {

Expand Down
2 changes: 1 addition & 1 deletion lib/nav.dart → lib/destination/nav.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:auto_size_text/auto_size_text.dart';
import 'package:avaremp/destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'package:flutter/material.dart';

class Nav {
Expand Down
2 changes: 1 addition & 1 deletion lib/find_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
import 'package:latlong2/latlong.dart';
import 'chart.dart';
import 'constants.dart';
import 'destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'gps.dart';
import 'data/main_database_helper.dart';
import 'main_screen.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/instrument_list.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:math';

import 'package:avaremp/destination_calculations.dart';
import 'package:avaremp/destination/destination_calculations.dart';
import 'package:avaremp/geo_calculations.dart';
import 'package:avaremp/pfd_painter.dart';
import 'package:avaremp/plan/plan_route.dart';
Expand All @@ -13,7 +13,7 @@ import 'package:intl/intl.dart';
import 'package:latlong2/latlong.dart';

import 'constants.dart';
import 'destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'gps.dart';


Expand Down
6 changes: 3 additions & 3 deletions lib/longpress_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import 'package:flutter/material.dart';
import 'package:latlong2/latlong.dart';
import 'package:toastification/toastification.dart';

import 'airport.dart';
import 'destination/airport.dart';
import 'constants.dart';
import 'destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'weather/metar.dart';
import 'nav.dart';
import 'package:avaremp/destination/nav.dart';

class LongPressWidget extends StatefulWidget {
final Destination destination;
Expand Down
4 changes: 2 additions & 2 deletions lib/map_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:async';
import 'dart:io';
import 'dart:math';
import 'package:auto_size_text/auto_size_text.dart';
import 'package:avaremp/airport.dart';
import 'package:avaremp/destination/airport.dart';
import 'package:avaremp/documents_screen.dart';
import 'package:avaremp/gdl90/nexrad_cache.dart';
import 'package:avaremp/geo_calculations.dart';
Expand All @@ -29,7 +29,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart
import 'package:path/path.dart';
import 'chart.dart';
import 'constants.dart';
import 'destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'download_screen.dart';
import 'gps.dart';
import 'longpress_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/plan/plan_file_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:flutter/material.dart';

import 'package:avaremp/aircraft.dart';
import 'package:avaremp/constants.dart';
import 'package:avaremp/destination.dart';
import 'package:avaremp/destination/destination.dart';

class PlanFileWidget extends StatefulWidget {
const PlanFileWidget({super.key});
Expand Down
4 changes: 2 additions & 2 deletions lib/plan/plan_item_widget.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'plan_line_widget.dart';
import 'package:avaremp/plan/waypoint.dart';
import 'package:flutter/material.dart';
import 'package:avaremp/airway.dart';
import 'package:avaremp/destination/airway.dart';
import 'package:avaremp/constants.dart';
import 'package:avaremp/destination.dart';
import 'package:avaremp/destination/destination.dart';

class PlanItemWidget extends StatefulWidget {
final Waypoint waypoint;
Expand Down
4 changes: 2 additions & 2 deletions lib/plan/plan_line_widget.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:avaremp/destination_calculations.dart';
import 'package:avaremp/destination/destination_calculations.dart';
import 'package:flutter/material.dart';

import 'package:avaremp/constants.dart';
import 'package:avaremp/destination.dart';
import 'package:avaremp/destination/destination.dart';

class PlanLineWidget extends StatefulWidget {

Expand Down
6 changes: 3 additions & 3 deletions lib/plan/plan_route.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import 'dart:convert';

import 'package:avaremp/airway.dart';
import 'package:avaremp/destination/airway.dart';
import 'package:avaremp/data/main_database_helper.dart';
import 'package:avaremp/faa_dates.dart';
import 'package:avaremp/geo_calculations.dart';
Expand All @@ -16,8 +16,8 @@ import 'package:latlong2/latlong.dart';
import 'dart:math';
import 'package:http/http.dart' as http;

import 'package:avaremp/destination.dart';
import 'package:avaremp/destination_calculations.dart';
import 'package:avaremp/destination/destination.dart';
import 'package:avaremp/destination/destination_calculations.dart';
import 'package:avaremp/gps.dart';

class PlanRoute {
Expand Down
2 changes: 1 addition & 1 deletion lib/plan/waypoint.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import '../destination.dart';
import 'package:avaremp/destination/destination.dart';

class Waypoint {

Expand Down
2 changes: 1 addition & 1 deletion lib/plate_screen.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:math';
import 'dart:ui' as ui;

import 'package:avaremp/destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'package:avaremp/geo_calculations.dart';
import 'package:avaremp/path_utils.dart';
import 'package:avaremp/storage.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import 'package:wakelock_plus/wakelock_plus.dart';
import 'app_settings.dart';
import 'data/db_general.dart';
import 'data/realm_helper.dart';
import 'destination.dart';
import 'package:avaremp/destination/destination.dart';
import 'download_manager.dart';
import 'flight_timer.dart';
import 'gdl90/message.dart';
Expand Down

0 comments on commit 7d9d12d

Please sign in to comment.