This commit is contained in:
Dmitry 2024-06-16 22:28:29 +03:00
parent 7f00f42033
commit 3edf517d41
6 changed files with 5 additions and 4 deletions

View file

@ -1,2 +1,3 @@
const ADMIN_BUILD = true;
const SHOW_ADMIN = true && ADMIN_BUILD;

View file

@ -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',

View file

@ -69,7 +69,7 @@ class ProfilePage extends StatelessWidget {
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
if (ADMIN_BUILD)
if (SHOW_ADMIN)
Row(
children: [
Expanded(

View file

@ -70,7 +70,7 @@ class _PacksMenuWidgetState extends State<PacksMenuWidget> {
),
),
),
if (ADMIN_BUILD)
if (SHOW_ADMIN)
Column(
children: [
GestureDetector(

View file

@ -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'