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) { } catch (e, s) {
log('Error when updating packs', error: e, stackTrace: s); log('Error when updating packs', error: e, stackTrace: s);
print('Error when updating pack: ${e}'); print('Error when updating pack: ${e}');
// Future.delayed(Duration(seconds: 5), () => updateAvailablePacks());
} finally { } finally {
print('Updating packs complete'); print('Updating packs complete');
if (_updateCompleter?.isCompleted == false) { if (_updateCompleter?.isCompleted == false) {

View file

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