app
This commit is contained in:
parent
7f00f42033
commit
3edf517d41
6 changed files with 5 additions and 4 deletions
Binary file not shown.
|
|
@ -1,2 +1,3 @@
|
|||
|
||||
const ADMIN_BUILD = true;
|
||||
const SHOW_ADMIN = true && ADMIN_BUILD;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class AuthPage extends StatelessWidget {
|
|||
fit: BoxFit.fitWidth,
|
||||
),
|
||||
),
|
||||
if (ADMIN_BUILD)
|
||||
if (SHOW_ADMIN)
|
||||
SharedPrefButton<bool>(
|
||||
builder: (v, _) => (v ?? false) ? Text('PROD') : Text('TEST'),
|
||||
spKey: 'env',
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class ProfilePage extends StatelessWidget {
|
|||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
if (ADMIN_BUILD)
|
||||
if (SHOW_ADMIN)
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class _PacksMenuWidgetState extends State<PacksMenuWidget> {
|
|||
),
|
||||
),
|
||||
),
|
||||
if (ADMIN_BUILD)
|
||||
if (SHOW_ADMIN)
|
||||
Column(
|
||||
children: [
|
||||
GestureDetector(
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.0+5
|
||||
version: 1.0.0+6
|
||||
|
||||
environment:
|
||||
sdk: '>=3.1.3 <4.0.0'
|
||||
|
|
|
|||
Loading…
Reference in a new issue