Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
f44dd4aa
Commit
f44dd4aa
authored
2 years ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
add current bloc number in settings; remove Substrate debug menu
parent
10eeeba6
No related branches found
No related tags found
No related merge requests found
Pipeline
#16585
waiting for manual action
Stage: format
Stage: build_and_test
Stage: package
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/screens/home.dart
+13
-14
13 additions, 14 deletions
lib/screens/home.dart
lib/screens/settings.dart
+26
-17
26 additions, 17 deletions
lib/screens/settings.dart
with
39 additions
and
31 deletions
lib/screens/home.dart
+
13
−
14
View file @
f44dd4aa
...
@@ -20,7 +20,6 @@ import 'package:gecko/screens/onBoarding/1.dart';
...
@@ -20,7 +20,6 @@ import 'package:gecko/screens/onBoarding/1.dart';
import
'package:gecko/screens/search.dart'
;
import
'package:gecko/screens/search.dart'
;
import
'package:gecko/screens/settings.dart'
;
import
'package:gecko/screens/settings.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
import
'package:gecko/screens/substrate_sandbox.dart'
;
import
'package:provider/provider.dart'
;
import
'package:provider/provider.dart'
;
class
HomeScreen
extends
StatelessWidget
{
class
HomeScreen
extends
StatelessWidget
{
...
@@ -74,19 +73,19 @@ class HomeScreen extends StatelessWidget {
...
@@ -74,19 +73,19 @@ class HomeScreen extends StatelessWidget {
);
);
},
},
),
),
ListTile
(
//
ListTile(
key:
const
Key
(
'substrateSandbox'
),
//
key: const Key('substrateSandbox'),
title:
const
Text
(
'Substrate debug'
),
//
title: const Text('Substrate debug'),
onTap:
()
{
//
onTap: () {
Navigator
.
pop
(
context
);
//
Navigator.pop(context);
Navigator
.
push
(
//
Navigator.push(
context
,
//
context,
MaterialPageRoute
(
builder:
(
context
)
{
//
MaterialPageRoute(builder: (context) {
return
const
SubstrateSandBox
();
//
return const SubstrateSandBox();
}),
//
}),
);
//
);
},
//
},
),
//
),
// ListTile(
// ListTile(
// title: const Text('A propos'),
// title: const Text('A propos'),
...
...
This diff is collapsed.
Click to expand it.
lib/screens/settings.dart
+
26
−
17
View file @
f44dd4aa
...
@@ -194,23 +194,32 @@ class SettingsScreen extends StatelessWidget {
...
@@ -194,23 +194,32 @@ class SettingsScreen extends StatelessWidget {
);
);
}),
}),
Consumer
<
SubstrateSdk
>(
builder:
(
context
,
_sub
,
_
)
{
Consumer
<
SubstrateSdk
>(
builder:
(
context
,
_sub
,
_
)
{
return
Consumer
<
SettingsProvider
>(
builder:
(
context
,
_set
,
_
)
{
return
Column
(
return
Visibility
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
visible:
selectedDuniterEndpoint
==
'Auto'
,
children:
[
child:
SizedBox
(
Consumer
<
SettingsProvider
>(
builder:
(
context
,
_set
,
_
)
{
width:
250
,
return
Visibility
(
height:
_sub
.
getConnectedEndpoint
()
==
null
?
60
:
20
,
visible:
selectedDuniterEndpoint
==
'Auto'
,
child:
Text
(
child:
SizedBox
(
_sub
.
getConnectedEndpoint
()
??
width:
250
,
"Un noeud sûr et valide sera choisi automatiquement parmis une liste aléatoire."
,
height:
_sub
.
getConnectedEndpoint
()
==
null
?
60
:
20
,
style:
TextStyle
(
child:
Text
(
fontSize:
15
,
_sub
.
getConnectedEndpoint
()
??
fontStyle:
FontStyle
.
italic
,
"Un noeud sûr et valide sera choisi automatiquement parmis une liste aléatoire."
,
color:
Colors
.
grey
[
700
]),
style:
TextStyle
(
),
fontSize:
15
,
),
fontStyle:
FontStyle
.
italic
,
);
color:
Colors
.
grey
[
700
]),
});
),
),
);
}),
Text
(
'bloc N°
${_sub.blocNumber}
'
,
style:
TextStyle
(
fontSize:
14
,
color:
Colors
.
grey
[
700
]),
)
],
);
}),
}),
]);
]);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment