Skip to content

Commit

Permalink
hide loading indicator on entry staking.actions page
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Oct 26, 2021
1 parent b29631d commit 6133b1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/pages/staking/actions/actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class _StakingActions extends State<StakingActions> {
WidgetsBinding.instance!.addPostFrameCallback((_) {
if (widget.plugin.store!.staking.ownStashInfo == null) {
if (_refreshKey.currentState != null) {
_refreshKey.currentState!.show();
_updateStakingInfo();
}
} else {
_updateStakingInfo();
Expand Down
14 changes: 2 additions & 12 deletions lib/pages/staking/validators/overview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -444,21 +444,11 @@ class _StakingOverviewPageState extends State<StakingOverviewPage> {
@override
Widget build(BuildContext context) {
final dicStaking =
I18n.of(context)!.getDic(i18n_full_dic_kusama, 'staking');
I18n.of(context)!.getDic(i18n_full_dic_kusama, 'staking') ?? {};
return Observer(
builder: (_) {
final int decimals = widget.plugin.networkState.tokenDecimals![0];
final List<Tab> _listTabs = <Tab>[
Tab(
text:
'${dicStaking!['elected']} (${widget.plugin.store!.staking.electedInfo.length})',
),
Tab(
text:
'${dicStaking['waiting']} (${widget.plugin.store!.staking.nextUpsInfo.length})',
),
];
List list = [
final List list = [
// index_0: the overview card
_buildTopCard(context),
// index_1: the 'Validators' label
Expand Down

0 comments on commit 6133b1a

Please sign in to comment.