Skip to content

Commit 7bd6ff7

Browse files
committed
change constant folder to common
1 parent 10d5f70 commit 7bd6ff7

File tree

12 files changed

+137
-5
lines changed

12 files changed

+137
-5
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace "com.example.restaurant_app"
27-
compileSdkVersion flutter.compileSdkVersion
27+
compileSdkVersion 33
2828
ndkVersion flutter.ndkVersion
2929

3030
compileOptions {

android/app/src/main/AndroidManifest.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<uses-permission android:name="android.permission.INTERNET" />
3+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
4+
<uses-permission android:name="android.permission.WAKE_LOCK"/>
5+
<!-- For apps with targetSDK=31 (Android 12) -->
6+
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
7+
38
<application
49
android:label="restaurant_app"
510
android:name="${applicationName}"
@@ -25,6 +30,23 @@
2530
<category android:name="android.intent.category.LAUNCHER"/>
2631
</intent-filter>
2732
</activity>
33+
34+
<service
35+
android:name="dev.fluttercommunity.plus.androidalarmmanager.AlarmService"
36+
android:permission="android.permission.BIND_JOB_SERVICE"
37+
android:exported="false"/>
38+
<receiver
39+
android:name="dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver"
40+
android:exported="false"/>
41+
<receiver
42+
android:name="dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver"
43+
android:enabled="false"
44+
android:exported="false">
45+
<intent-filter>
46+
<action android:name="android.intent.action.BOOT_COMPLETED" />
47+
</intent-filter>
48+
</receiver>
49+
2850
<!-- Don't delete the meta-data below.
2951
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
3052
<meta-data
File renamed without changes.
File renamed without changes.

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:provider/provider.dart';
3-
import 'package:restaurant_app/constant/colors.dart';
3+
import 'package:restaurant_app/common/colors.dart';
44
import 'package:restaurant_app/data/api/api_service.dart';
55
import 'package:restaurant_app/providers/favorite_provider.dart';
66
import 'package:restaurant_app/providers/restaurant_detail_provider.dart';

lib/screens/favorite_restaurant.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:provider/provider.dart';
3-
import 'package:restaurant_app/constant/urls.dart';
3+
import 'package:restaurant_app/common/urls.dart';
44
import 'package:restaurant_app/providers/favorite_provider.dart';
55
import 'package:restaurant_app/screens/restaurant_detail.dart';
66

lib/screens/restaurant_detail.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:provider/provider.dart';
3-
import 'package:restaurant_app/constant/urls.dart';
3+
import 'package:restaurant_app/common/urls.dart';
44
import 'package:restaurant_app/data/model/list_restaurant.dart';
55
import 'package:restaurant_app/providers/favorite_provider.dart';
66
import 'package:restaurant_app/providers/restaurant_detail_provider.dart';

lib/screens/settings.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:flutter/foundation.dart';
2+
import 'package:flutter/material.dart';
3+
4+
class Settings extends StatefulWidget {
5+
const Settings({super.key});
6+
7+
@override
8+
State<Settings> createState() => _SettingsState();
9+
}
10+
11+
class _SettingsState extends State<Settings> {
12+
@override
13+
Widget build(BuildContext context) {
14+
return const Placeholder();
15+
}
16+
}

lib/widget/restaurant_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import 'package:restaurant_app/constant/urls.dart';
2+
import 'package:restaurant_app/common/urls.dart';
33
import 'package:restaurant_app/data/model/list_restaurant.dart';
44
import 'package:restaurant_app/screens/restaurant_detail.dart';
55

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
import FlutterMacOS
66
import Foundation
77

8+
import flutter_local_notifications
89
import sqflite
910

1011
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
12+
FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
1113
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
1214
}

0 commit comments

Comments
 (0)