Skip to content

Commit

Permalink
Merge pull request #11 from polkawallet-io/develop
Browse files Browse the repository at this point in the history
release 0.4.8
  • Loading branch information
RomeroYang authored Jun 21, 2022
2 parents c8c801a + 353bb6b commit db4a165
Show file tree
Hide file tree
Showing 48 changed files with 821 additions and 429 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.4.8] - 20220621.

* bump polkawallet_sdk: 0.4.8.
* ui update.

## [0.4.6] - 20220527.

* bump polkawallet_sdk: 0.4.6.
Expand Down
Binary file added assets/images/staking/icon_rebond.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions example/lib/pages/assetsContent.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:polkawallet_ui/components/borderedTitle.dart';
import 'package:polkawallet_ui/components/roundedCard.dart';
Expand Down
18 changes: 6 additions & 12 deletions example/lib/pages/homePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,12 @@ class _MyHomePageState extends State<MyHomePage> {
return items.map((e) {
final active = items[_tabIndex].text == e.text;
return BottomNavigationBarItem(
icon: SizedBox(
child: active ? e.iconActive : e.icon,
width: 32,
height: 32,
),
title: Text(
e.text,
style: TextStyle(
fontSize: 14,
color: active ? Theme.of(context).primaryColor : Colors.grey),
),
);
icon: SizedBox(
child: active ? e.iconActive : e.icon,
width: 32,
height: 32,
),
label: e.text);
}).toList();
}

Expand Down
1 change: 0 additions & 1 deletion example/lib/pages/selectListPage.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ListItemData {
Expand Down
1 change: 0 additions & 1 deletion example/lib/pages/tx.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:polkawallet_plugin_kusama/polkawallet_plugin_kusama.dart';

Expand Down
29 changes: 18 additions & 11 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand All @@ -56,7 +56,7 @@ packages:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
version: "1.16.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -281,7 +281,7 @@ packages:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3"
version: "0.6.4"
json_annotation:
dependency: transitive
description:
Expand All @@ -296,6 +296,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -323,7 +330,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
path_drawing:
dependency: transitive
description:
Expand Down Expand Up @@ -428,14 +435,14 @@ packages:
name: polkawallet_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.6"
version: "0.4.7"
polkawallet_ui:
dependency: "direct main"
description:
path: "../../ui"
relative: true
source: path
version: "0.4.6"
name: polkawallet_ui
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.7"
process:
dependency: transitive
description:
Expand Down Expand Up @@ -622,7 +629,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.2"
webview_flutter:
dependency: transitive
description:
Expand Down Expand Up @@ -673,5 +680,5 @@ packages:
source: hosted
version: "5.3.1"
sdks:
dart: ">=2.14.0 <3.0.0"
dart: ">=2.17.0-0 <3.0.0"
flutter: ">=2.5.0"
1 change: 0 additions & 1 deletion lib/common/components/chartLabel.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ChartLabel extends StatelessWidget {
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/governanceNew/candidateDetailPage.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:polkawallet_plugin_kusama/pages/governanceNew/councilPage.dart';
Expand All @@ -11,6 +10,7 @@ import 'package:polkawallet_ui/components/v3/plugin/pluginScaffold.dart';
import 'package:polkawallet_ui/components/v3/plugin/roundedPluginCard.dart';
import 'package:polkawallet_ui/utils/format.dart';
import 'package:polkawallet_ui/utils/i18n.dart';
import 'package:polkawallet_ui/utils/index.dart';

class CandidateDetailPage extends StatefulWidget {
CandidateDetailPage(this.plugin, this.keyring);
Expand All @@ -29,7 +29,7 @@ class _CandidateDetailPageState extends State<CandidateDetailPage> {
void initState() {
super.initState();

WidgetsBinding.instance!.addPostFrameCallback((_) {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (widget.plugin.store.gov.councilVotes != null) {
final List info =
ModalRoute.of(context)!.settings.arguments as List<dynamic>;
Expand Down Expand Up @@ -104,7 +104,7 @@ class _CandidateDetailPageState extends State<CandidateDetailPage> {
child: Text(
dic['vote.voter'],
style: Theme.of(context).textTheme.headline3?.copyWith(
fontSize: 18,
fontSize: UI.getTextSize(18, context),
fontWeight: FontWeight.w600,
color: Colors.white),
),
Expand Down
21 changes: 9 additions & 12 deletions lib/pages/governanceNew/councilPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class _CouncilPageState extends State<CouncilPage> {
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(14),
topRight: const Radius.circular(14)),
topLeft: const Radius.circular(8),
topRight: const Radius.circular(8)),
color: Color.fromARGB(255, 68, 70, 74),
),
child: Row(
Expand All @@ -129,7 +129,7 @@ class _CouncilPageState extends State<CouncilPage> {
?.copyWith(color: Colors.white),
style: Theme.of(context).textTheme.headline3?.copyWith(
color: Colors.white,
fontSize: 22,
fontSize: UI.getTextSize(22, context),
fontWeight: FontWeight.bold,
height: 1.7),
title: dic['seats'],
Expand All @@ -145,7 +145,7 @@ class _CouncilPageState extends State<CouncilPage> {
?.copyWith(color: Colors.white),
style: Theme.of(context).textTheme.headline3?.copyWith(
color: Colors.white,
fontSize: 22,
fontSize: UI.getTextSize(22, context),
fontWeight: FontWeight.bold,
height: 1.7),
title: dic['up'],
Expand All @@ -161,7 +161,7 @@ class _CouncilPageState extends State<CouncilPage> {
?.copyWith(color: Colors.white),
style: Theme.of(context).textTheme.headline3?.copyWith(
color: Colors.white,
fontSize: 22,
fontSize: UI.getTextSize(22, context),
fontWeight: FontWeight.bold,
height: 1.7),
title: dic['candidate'],
Expand All @@ -183,7 +183,7 @@ class _CouncilPageState extends State<CouncilPage> {
?.copyWith(color: Colors.white),
style: Theme.of(context).textTheme.headline3?.copyWith(
color: Colors.white,
fontSize: 22,
fontSize: UI.getTextSize(22, context),
fontWeight: FontWeight.bold,
height: 1.7),
title: dic['voted'],
Expand All @@ -202,7 +202,7 @@ class _CouncilPageState extends State<CouncilPage> {
?.copyWith(color: Colors.white),
style: Theme.of(context).textTheme.headline3?.copyWith(
color: Colors.white,
fontSize: 22,
fontSize: UI.getTextSize(22, context),
fontWeight: FontWeight.bold,
height: 1.7),
title: dic['vote.my'],
Expand Down Expand Up @@ -274,7 +274,6 @@ class _CouncilPageState extends State<CouncilPage> {
crossAxisAlignment: CrossAxisAlignment.end,
children: [
PluginTextTag(
padding: EdgeInsets.zero,
margin: EdgeInsets.only(left: 16),
title: dic['member']!,
),
Expand All @@ -289,7 +288,7 @@ class _CouncilPageState extends State<CouncilPage> {
activeTextcolor:
_select ? Colors.white : Colors.black,
active: true,
fontSize: 12,
fontSize: UI.getTextSize(12, context),
minSize: 19,
onPressed: () {
setState(() {
Expand Down Expand Up @@ -362,7 +361,6 @@ class _CouncilPageState extends State<CouncilPage> {
),
),
PluginTextTag(
padding: EdgeInsets.zero,
margin: EdgeInsets.only(left: 16, top: 15),
title: dic['up']!,
),
Expand Down Expand Up @@ -424,7 +422,6 @@ class _CouncilPageState extends State<CouncilPage> {
),
),
PluginTextTag(
padding: EdgeInsets.zero,
margin: EdgeInsets.only(left: 16, top: 15),
title: dic['candidate']!,
),
Expand Down Expand Up @@ -590,7 +587,7 @@ class CandidateItem extends StatelessWidget {
)} $tokenSymbol',
style: Theme.of(context).textTheme.headline5?.copyWith(
color: Colors.white,
fontSize: 10,
fontSize: UI.getTextSize(10, context),
fontWeight: FontWeight.w300)),
onTap: noTap
? null
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/governanceNew/councilVotePage.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:math';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:polkawallet_plugin_kusama/pages/staking/actions/bondExtraPage.dart';
Expand All @@ -10,13 +9,13 @@ import 'package:polkawallet_sdk/plugin/store/balances.dart';
import 'package:polkawallet_sdk/storage/keyring.dart';
import 'package:polkawallet_sdk/utils/i18n.dart';
import 'package:polkawallet_ui/components/infoItemRow.dart';
import 'package:polkawallet_ui/components/txButton.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginAddressFormItem.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginInputBalance.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginScaffold.dart';
import 'package:polkawallet_ui/components/v3/plugin/pluginTxButton.dart';
import 'package:polkawallet_ui/utils/format.dart';
import 'package:polkawallet_ui/utils/i18n.dart';
import 'package:polkawallet_ui/utils/index.dart';

class CouncilVotePage extends StatefulWidget {
CouncilVotePage(this.plugin, this.keyring);
Expand Down Expand Up @@ -164,7 +163,8 @@ class _CouncilVote extends State<CouncilVotePage> {
.headline4
?.copyWith(
color: Colors.white,
fontSize: 12),
fontSize:
UI.getTextSize(12, context)),
)
],
),
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/governanceNew/govExternalLinks.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:polkawallet_ui/utils/index.dart';

Expand Down Expand Up @@ -33,7 +32,7 @@ class GovExternalLinks extends StatelessWidget {
data['name'],
style: Theme.of(context).textTheme.headline5?.copyWith(
color: Colors.white,
fontSize: 10,
fontSize: UI.getTextSize(10, context),
fontWeight: FontWeight.w300),
)
],
Expand Down
Loading

0 comments on commit db4a165

Please sign in to comment.