This commit is contained in:
Dmitry 2024-08-25 01:39:44 +03:00
parent b7794408f8
commit 39b91a5fb3
3 changed files with 91 additions and 97 deletions

View file

@ -55,6 +55,7 @@ class PackUpdater {
} catch (e, s) {
log('Error when updating packs', error: e, stackTrace: s);
print('Error when updating pack: ${e}');
// Future.delayed(Duration(seconds: 5), () => updateAvailablePacks());
} finally {
print('Updating packs complete');
if (_updateCompleter?.isCompleted == false) {

View file

@ -23,7 +23,6 @@ import '../widgets/shared_pref_button.dart';
@RoutePage()
class SettingsPage extends StatelessWidget {
void _initAdmin() {
if (!getIt.isRegistered<AdminApi>()) {
getIt.registerLazySingleton<AdminApi>(
@ -51,15 +50,14 @@ class SettingsPage extends StatelessWidget {
height: 1,
color: borderGray.withOpacity(0.2),
),
Expanded(
child: ListView(
children: [
Expanded(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0.w),
child: SingleChildScrollView(
reverse: true,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
...[
SimpleTile.text(
onLongTap: () async {
final r = await locator.userManager.deleteUser();
@ -151,12 +149,7 @@ class SettingsPage extends StatelessWidget {
height: 1,
color: borderGray.withOpacity(0.2),
),
]).toList(),
),
),
),
Column(
children: [
]),
Padding(
padding:
EdgeInsets.only(left: 10.0.w, right: 10.w, top: 32.h),
@ -172,7 +165,7 @@ class SettingsPage extends StatelessWidget {
),
],
),
],
),
),
),
const BigBackButton(),