This commit is contained in:
Hillel Coren 2019-11-13 10:08:45 +02:00
parent 7f61975d90
commit 97e02349f5
2 changed files with 11 additions and 13 deletions

View File

@ -1,11 +1,9 @@
import 'dart:io';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:invoiceninja_flutter/ui/app/debug/state_inspector.dart'; import 'package:invoiceninja_flutter/ui/app/debug/state_inspector.dart';
import 'package:invoiceninja_flutter/ui/app/loading_indicator.dart'; import 'package:invoiceninja_flutter/ui/app/loading_indicator.dart';
import 'package:invoiceninja_flutter/ui/app/resources/cached_image.dart'; import 'package:invoiceninja_flutter/ui/app/resources/cached_image.dart';
import 'package:invoiceninja_flutter/ui/app/upgrade_dialog.dart';
import 'package:redux/redux.dart'; import 'package:redux/redux.dart';
import 'package:flutter_redux/flutter_redux.dart'; import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/constants.dart'; import 'package:invoiceninja_flutter/constants.dart';
@ -334,13 +332,10 @@ class MenuDrawer extends StatelessWidget {
), ),
], ],
)), )),
/*
Align( Align(
child: SidebarFooter(), child: SidebarFooter(),
alignment: Alignment(0, 1), alignment: Alignment(0, 1),
), ),
*/
], ],
), ),
), ),
@ -478,14 +473,15 @@ class SidebarFooter extends StatelessWidget {
icon: Icon(Icons.info_outline), icon: Icon(Icons.info_outline),
onPressed: () => showAbout(), onPressed: () => showAbout(),
), ),
IconButton( if (kDebugMode)
icon: Icon(Icons.memory), IconButton(
onPressed: () => showDialog<StateInspector>( icon: Icon(Icons.memory),
context: context, onPressed: () => showDialog<StateInspector>(
builder: (BuildContext context) { context: context,
return StateInspector(); builder: (BuildContext context) {
}), return StateInspector();
), }),
),
/* /*
if (state.lastError.isNotEmpty) if (state.lastError.isNotEmpty)
IconButton( IconButton(
@ -506,6 +502,7 @@ class SidebarFooter extends StatelessWidget {
*/ */
), ),
*/ */
/*
if (!Platform.isIOS && if (!Platform.isIOS &&
isHosted(context) && isHosted(context) &&
!isPaidAccount(context)) ...[ !isPaidAccount(context)) ...[
@ -521,6 +518,7 @@ class SidebarFooter extends StatelessWidget {
), ),
SizedBox(width: 14) SizedBox(width: 14)
], ],
*/
], ],
), ),
); );

Binary file not shown.