Skip to content

Commit af1e8f3

Browse files
committed
provider optimization
1 parent c2e8949 commit af1e8f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/views/Settings part/AboutPage.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,11 @@ class AboutAppPage extends StatelessWidget {
128128
children: [
129129
GestureDetector(
130130
onLongPress: () {
131-
if (isFirstTry &&
132-
!GetStorage().read(kDiscoveredDeveloperOption)) {
131+
if (isFirstTry && !setting.isDeveloperOption) {
133132
Fluttertoast.showToast(msg: '(⌐■_■)');
134133
isFirstTry = false;
135134
} else {
136-
//TODO: Check this, try to minimize GetStorage calling
137-
// method already defined in provider
138-
if (!GetStorage().read(kDiscoveredDeveloperOption)) {
135+
if (!setting.isDeveloperOption) {
139136
Fluttertoast.showToast(
140137
msg: 'Developer mode discovered',
141138
toastLength: Toast.LENGTH_LONG,

0 commit comments

Comments
 (0)