Commit 8ddd1d9b authored by Sai Srinivas's avatar Sai Srinivas
Browse files

11-11 permissions and conditions

parent 2d51564f
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="in.webgrid.genrentals"> package="in.webgrid.genrentals">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
...@@ -6,6 +7,10 @@ ...@@ -6,6 +7,10 @@
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CAMERA" />
<uses-permission tools:node="remove" android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission tools:node="remove" android:name="android.permission.READ_MEDIA_VIDEO"/>
<uses-permission tools:node="remove" android:name="android.permission.READ_MEDIA_AUDIO"/>
<uses-permission tools:node="remove" android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application <application
android:label="Gen Rentals" android:label="Gen Rentals"
...@@ -38,11 +43,6 @@ ...@@ -38,11 +43,6 @@
android:name="flutterEmbedding" android:name="flutterEmbedding"
android:value="2" /> android:value="2" />
</application> </application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries> <queries>
<intent> <intent>
<action android:name="android.intent.action.PROCESS_TEXT"/> <action android:name="android.intent.action.PROCESS_TEXT"/>
......
...@@ -516,6 +516,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb ...@@ -516,6 +516,7 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
), ),
], ],
), ),
if(dashboardData?.balanceAmount?.toString()!="0")
InkResponse( InkResponse(
onTap: () => _openPaymentSheet(context, dashboardData!.balanceAmount.toString()), onTap: () => _openPaymentSheet(context, dashboardData!.balanceAmount.toString()),
child: Text( child: Text(
......
...@@ -35,7 +35,10 @@ class _SplashScreenState extends State<SplashScreen> with SingleTickerProviderSt ...@@ -35,7 +35,10 @@ class _SplashScreenState extends State<SplashScreen> with SingleTickerProviderSt
void initState() { void initState() {
super.initState(); super.initState();
// Initialize connectivity check // Initialize connectivity check
_initConnectivity(); Future.microtask(() {
_initConnectivity();
},);
_controller = AnimationController( _controller = AnimationController(
vsync: this, vsync: this,
......
...@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev ...@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.0.3+4 version: 1.0.4+6
environment: environment:
sdk: ^3.7.2 sdk: ^3.7.2
...@@ -48,11 +48,11 @@ dependencies: ...@@ -48,11 +48,11 @@ dependencies:
pull_to_refresh: ^2.0.0 pull_to_refresh: ^2.0.0
firebase_core: ^4.1.1 firebase_core: ^4.1.1
device_info_plus: ^10.0.0 device_info_plus: ^10.0.0
image_picker: ^1.0.4
path_provider: ^2.1.4 path_provider: ^2.1.4
open_filex: ^4.4.0 open_filex: ^4.4.0
photo_view: ^0.14.0 photo_view: ^0.14.0
razorpay_flutter: ^1.4.0 razorpay_flutter: ^1.4.0
image_picker: ^1.2.0
dev_dependencies: dev_dependencies:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment