You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contentText:"This will uninstall the app while retaining its data. Yes that's right! Upon re-installation, the app will continue from where it was left off (Similar to what offloading in iOS does). If you want to remove the data completely, install the app again and uninstall normally.",
115
+
title: packageInfo['packageName']!,
116
+
contentText:packageInfo['appType']==AppType.system?"This is a system app and uninstalling it will only uninstall for the active user. Proceed?":"Do you want to uninstall this app?",
contentText: packageInfo['appType']==AppType.system?"This is a system app and uninstalling it will only uninstall for the active user. Proceed?":"Do you want to uninstall this app?",
152
-
onConfirm: () async{
153
-
if(awaitperformUninstall()!=0){
154
-
awaitshowDialog(
155
-
context: context,
156
-
builder: (context)=>AlertDialog(
157
-
title:constText("Error",style:TextStyle(
158
-
color:Colors.blue,
159
-
fontWeight:FontWeight.w600
160
-
),),
161
-
content:constText("An error occurred"),
162
-
actions: [
163
-
TextButton(
164
-
onPressed: (){
165
-
Navigator.pop(context);
166
-
},
167
-
child:constText("OK",style:TextStyle(
168
-
color:Colors.blue
169
-
),),
170
-
),
171
-
],
172
-
),
173
-
);
174
-
}else{
175
-
onUninstallComplete();
176
-
}
177
-
Navigator.pop(context);
178
-
},
179
-
),
180
-
);
181
-
},
182
-
),
183
165
],
184
166
),
185
167
Divider(
@@ -222,6 +204,47 @@ class PackageInfo extends StatelessWidget {
contentText:"This will uninstall the app while retaining its data. Yes that's right! Upon re-installation, the app will continue from where it was left off (Similar to what offloading in iOS does). If you want to remove the data completely, install the app again and uninstall normally.",
0 commit comments