File tree Expand file tree Collapse file tree 12 files changed +137
-5
lines changed Expand file tree Collapse file tree 12 files changed +137
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if (flutterVersionName == null) {
24
24
25
25
android {
26
26
namespace " com.example.restaurant_app"
27
- compileSdkVersion flutter . compileSdkVersion
27
+ compileSdkVersion 33
28
28
ndkVersion flutter. ndkVersion
29
29
30
30
compileOptions {
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
2
2
<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
+
3
8
<application
4
9
android : label =" restaurant_app"
5
10
android : name =" ${applicationName}"
25
30
<category android : name =" android.intent.category.LAUNCHER" />
26
31
</intent-filter >
27
32
</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
+
28
50
<!-- Don't delete the meta-data below.
29
51
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
30
52
<meta-data
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:provider/provider.dart' ;
3
- import 'package:restaurant_app/constant /colors.dart' ;
3
+ import 'package:restaurant_app/common /colors.dart' ;
4
4
import 'package:restaurant_app/data/api/api_service.dart' ;
5
5
import 'package:restaurant_app/providers/favorite_provider.dart' ;
6
6
import 'package:restaurant_app/providers/restaurant_detail_provider.dart' ;
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:provider/provider.dart' ;
3
- import 'package:restaurant_app/constant /urls.dart' ;
3
+ import 'package:restaurant_app/common /urls.dart' ;
4
4
import 'package:restaurant_app/providers/favorite_provider.dart' ;
5
5
import 'package:restaurant_app/screens/restaurant_detail.dart' ;
6
6
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:provider/provider.dart' ;
3
- import 'package:restaurant_app/constant /urls.dart' ;
3
+ import 'package:restaurant_app/common /urls.dart' ;
4
4
import 'package:restaurant_app/data/model/list_restaurant.dart' ;
5
5
import 'package:restaurant_app/providers/favorite_provider.dart' ;
6
6
import 'package:restaurant_app/providers/restaurant_detail_provider.dart' ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
- import 'package:restaurant_app/constant /urls.dart' ;
2
+ import 'package:restaurant_app/common /urls.dart' ;
3
3
import 'package:restaurant_app/data/model/list_restaurant.dart' ;
4
4
import 'package:restaurant_app/screens/restaurant_detail.dart' ;
5
5
Original file line number Diff line number Diff line change 5
5
import FlutterMacOS
6
6
import Foundation
7
7
8
+ import flutter_local_notifications
8
9
import sqflite
9
10
10
11
func RegisterGeneratedPlugins( registry: FlutterPluginRegistry ) {
12
+ FlutterLocalNotificationsPlugin . register ( with: registry. registrar ( forPlugin: " FlutterLocalNotificationsPlugin " ) )
11
13
SqflitePlugin . register ( with: registry. registrar ( forPlugin: " SqflitePlugin " ) )
12
14
}
You can’t perform that action at this time.
0 commit comments