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
00b81d53
Commit
00b81d53
authored
1 year ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
feat: add debug screen
parent
840932cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#18995
waiting for manual action
Stage: format
Stage: build_and_test
Stage: package
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/screens/debug_screen.dart
+62
-0
62 additions, 0 deletions
lib/screens/debug_screen.dart
with
62 additions
and
0 deletions
lib/screens/debug_screen.dart
0 → 100644
+
62
−
0
View file @
00b81d53
import
'package:easy_localization/easy_localization.dart'
;
import
'package:gecko/globals.dart'
;
import
'package:flutter/material.dart'
;
import
'package:gecko/providers/substrate_sdk.dart'
;
import
'package:provider/provider.dart'
;
class
DebugScreen
extends
StatelessWidget
{
const
DebugScreen
({
Key
?
key
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
final
sub
=
Provider
.
of
<
SubstrateSdk
>(
context
);
return
Scaffold
(
backgroundColor:
backgroundColor
,
appBar:
AppBar
(
toolbarHeight:
60
*
ratio
,
title:
const
SizedBox
(
height:
22
,
child:
Text
(
'Debug screen'
),
)),
body:
SafeArea
(
child:
Column
(
children:
<
Widget
>[
const
SizedBox
(
height:
40
),
Center
(
child:
Column
(
children:
[
Text
(
'node:
${sub.getConnectedEndpoint()}
'
,
style:
TextStyle
(
fontSize:
15
,
color:
Colors
.
grey
[
700
]),
),
const
SizedBox
(
height:
15
),
Text
(
'blockN'
.
tr
(
args:
[
sub
.
blocNumber
.
toString
()
]),
//'bloc N°${sub.blocNumber}',
style:
TextStyle
(
fontSize:
15
,
color:
Colors
.
grey
[
700
]),
),
const
SizedBox
(
height:
20
),
SizedBox
(
height:
60
,
width:
250
,
child:
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
foregroundColor:
Colors
.
white
,
elevation:
4
,
backgroundColor:
orangeC
,
// foreground
),
onPressed:
()
async
=
>
await
sub
.
spawnBlock
(),
child:
const
Text
(
'Spawn a bloc'
,
style:
TextStyle
(
fontSize:
20
,
fontWeight:
FontWeight
.
w600
),
),
),
),
],
),
),
]),
));
}
}
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