Changed theme colour

This commit is contained in:
Imran Remtulla
2022-08-23 15:36:29 -04:00
parent 9354e3c30b
commit e86fa801a3
13 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ void main() async {
));
}
var defaultThemeColour = const Color(0xFF69F0AE);
var defaultThemeColour = Colors.deepPurple;
class MyApp extends StatelessWidget {
const MyApp({super.key});

View File

@@ -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);
}
}