mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 05:10:15 +02:00
Changed theme colour
This commit is contained in:
@@ -50,7 +50,7 @@ void main() async {
|
||||
));
|
||||
}
|
||||
|
||||
var defaultThemeColour = const Color(0xFF69F0AE);
|
||||
var defaultThemeColour = Colors.deepPurple;
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
@@ -160,7 +160,7 @@ class AppsProvider with ChangeNotifier {
|
||||
|
||||
Future<App?> getUpdate(String appId) async {
|
||||
App? currentApp = apps[appId]!.app;
|
||||
App newApp = await SourceService().getApp(currentApp!.url);
|
||||
App newApp = await SourceService().getApp(currentApp.url);
|
||||
if (newApp.latestVersion != currentApp.latestVersion) {
|
||||
newApp.installedVersion = currentApp.installedVersion;
|
||||
await saveApp(newApp);
|
||||
@@ -190,7 +190,7 @@ class AppsProvider with ChangeNotifier {
|
||||
List<String> appIds = apps.keys.toList();
|
||||
for (int i = 0; i < appIds.length; i++) {
|
||||
App? app = apps[appIds[i]]!.app;
|
||||
if (app!.installedVersion != app.latestVersion) {
|
||||
if (app.installedVersion != app.latestVersion) {
|
||||
await downloadAndInstallLatestApp(app.id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user