Skip to content

Commit f6fc8b8

Browse files
committed
fix project import url
1 parent d1bdc73 commit f6fc8b8

File tree

14 files changed

+37
-31
lines changed

14 files changed

+37
-31
lines changed

lib/core/components/text/locale_text.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
2-
import 'package:fluttermvvmtemplate/core/extension/string_extension.dart';
2+
3+
import '../../extension/string_extension.dart';
34

45
class LocaleText extends StatelessWidget {
56
final String value;

lib/core/extension/string_extension.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:easy_localization/easy_localization.dart';
2-
import 'package:fluttermvvmtemplate/core/constants/app/app_constants.dart';
2+
3+
import '../constants/app/app_constants.dart';
34

45
extension StringLocalization on String {
56
String get locale => this.tr();

lib/core/init/navigation/navigation_route.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter/widgets.dart';
3-
import 'package:fluttermvvmtemplate/core/components/card/not_found_navigation_widget.dart';
4-
import 'package:fluttermvvmtemplate/core/constants/navigation/navigation_constants.dart';
5-
import 'package:fluttermvvmtemplate/view/authenticate/test/view/test_view.dart';
3+
4+
import '../../../view/authenticate/test/view/test_view.dart';
5+
import '../../components/card/not_found_navigation_widget.dart';
6+
import '../../constants/navigation/navigation_constants.dart';
67

78
class NavigationRoute {
89
static NavigationRoute _instance = NavigationRoute._init();

lib/core/init/navigation/navigation_service.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/cupertino.dart';
2-
import 'package:fluttermvvmtemplate/core/init/navigation/INavigationService.dart';
2+
3+
import 'INavigationService.dart';
34

45
class NavigationService implements INavigationService {
56
static NavigationService _instance = NavigationService._init();
@@ -17,7 +18,6 @@ class NavigationService implements INavigationService {
1718

1819
@override
1920
Future<void> navigateToPageClear({String path, Object data}) async {
20-
await navigatorKey.currentState
21-
.pushNamedAndRemoveUntil(path, removeAllOldRoutes, arguments: data);
21+
await navigatorKey.currentState.pushNamedAndRemoveUntil(path, removeAllOldRoutes, arguments: data);
2222
}
2323
}

lib/core/init/network/network_manager.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import 'dart:io';
22

33
import 'package:dio/dio.dart';
4-
import 'package:fluttermvvmtemplate/core/base/model/base_error.dart';
5-
import 'package:fluttermvvmtemplate/core/base/model/base_model.dart';
6-
import 'package:fluttermvvmtemplate/core/constants/enums/locale_keys_enum.dart';
7-
import 'package:fluttermvvmtemplate/core/init/cache/locale_manager.dart';
4+
5+
import '../../base/model/base_error.dart';
6+
import '../../base/model/base_model.dart';
7+
import '../../constants/enums/locale_keys_enum.dart';
8+
import '../cache/locale_manager.dart';
89

910
class NetworkManager {
1011
static NetworkManager _instance;
@@ -16,9 +17,7 @@ class NetworkManager {
1617
NetworkManager._init() {
1718
final baseOptions = BaseOptions(
1819
baseUrl: "https://jsonplaceholder.typicode.com/",
19-
headers: {
20-
"val": LocaleManager.instance.getStringValue(PreferencesKeys.TOKEN)
21-
},
20+
headers: {"val": LocaleManager.instance.getStringValue(PreferencesKeys.TOKEN)},
2221
);
2322
_dio = Dio(baseOptions);
2423

lib/core/init/notifier/provider_list.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import 'package:fluttermvvmtemplate/core/init/navigation/navigation_service.dart';
2-
import 'package:fluttermvvmtemplate/core/init/notifier/theme_notifer.dart';
31
import 'package:provider/provider.dart';
42
import 'package:provider/single_child_widget.dart';
53

4+
import '../navigation/navigation_service.dart';
5+
import 'theme_notifer.dart';
6+
67
class ApplicationProvider {
78
static ApplicationProvider _instance;
89
static ApplicationProvider get instance {

lib/core/init/notifier/theme_notifer.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter/material.dart';
2-
import 'package:fluttermvvmtemplate/core/constants/enums/app_theme_enum.dart';
3-
import 'package:fluttermvvmtemplate/core/init/theme/app_theme.dart';
4-
import 'package:fluttermvvmtemplate/core/init/theme/app_theme_light.dart';
2+
import 'package:izmirtarih/core/constants/enums/app_theme_enum.dart';
3+
import 'package:izmirtarih/core/init/theme/app_theme_light.dart';
54

65
class ThemeNotifier extends ChangeNotifier {
76
ThemeData _currentTheme = AppThemeLight.instance.theme;

lib/core/init/theme/app_theme_light.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:flutter/material.dart';
2-
import 'package:fluttermvvmtemplate/core/constants/app/app_constants.dart';
3-
import 'package:fluttermvvmtemplate/core/init/theme/app_theme.dart';
42

3+
import '../../constants/app/app_constants.dart';
4+
import 'app_theme.dart';
55
import 'light/light_theme_interface.dart';
66

77
class AppThemeLight extends AppTheme with ILightTheme {

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import 'package:easy_localization/easy_localization.dart';
22
import 'package:flutter/material.dart';
3-
import 'package:fluttermvvmtemplate/core/init/cache/locale_manager.dart';
43
import 'package:provider/provider.dart';
54

65
import 'core/constants/app/app_constants.dart';
6+
import 'core/init/cache/locale_manager.dart';
77
import 'core/init/lang/language_manager.dart';
88
import 'core/init/navigation/navigation_route.dart';
99
import 'core/init/navigation/navigation_service.dart';

lib/view/authenticate/login/view/login_view.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import 'package:flutter/material.dart';
2-
import 'package:fluttermvvmtemplate/core/base/view/base_widget.dart';
3-
import 'package:fluttermvvmtemplate/core/extension/context_extension.dart';
4-
import 'package:fluttermvvmtemplate/view/authenticate/login/viewmodel/login_view_model.dart';
2+
3+
import '../../../../core/base/view/base_widget.dart';
4+
import '../../../../core/extension/context_extension.dart';
5+
import '../viewmodel/login_view_model.dart';
56

67
class LoginView extends StatelessWidget {
78
@override

0 commit comments

Comments
 (0)