Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Update before the Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Shady Khalifa committed Aug 14, 2020
1 parent e5d24b1 commit 9a5e820
Show file tree
Hide file tree
Showing 26 changed files with 352 additions and 370 deletions.
81 changes: 34 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
members = ["native/*"]

[patch.crates-io]
substrate-subxt = { git = "https://github.com/dvc94ch/substrate-subxt", branch = "fix-port" }
substrate-subxt = { git = "https://github.com/dvc94ch/substrate-subxt", branch = "different-assert" }

# [profile.dev]
# panic = 'abort'

# [profile.release]
# lto = true
# panic = 'abort'
# codegen-units = 1
2 changes: 1 addition & 1 deletion lib/screens/bounty_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ class _BountyHeader extends StatelessWidget {
child: FittedBox(
fit: BoxFit.fitWidth,
child: Text(
numberFormat.format(bounty.info.total),
numberFormat.format(bounty.info.total.toInt()),
style: TextStyle(
color: const Color(0xFF25C100),
fontSize: 14.ssp.toDouble(),
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/create_bounty_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class _CreateBountyScreenState extends State<CreateBountyScreen> {
data.owner,
data.repo,
data.issue,
int.parse(_amountController.text),
BigInt.parse(_amountController.text),
);
print(id);
print('Created Bounty with Id: $id');
await Future.delayed(
const Duration(milliseconds: 50),
() {
Expand Down
17 changes: 9 additions & 8 deletions lib/screens/intro_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ class _IntroScreenState extends State<IntroScreen> {
ExtendedNavigator.root.push(Routes.generateAccountStepTwoScreen);
},
),
SizedBox(height: 20.h.toDouble()),
Button(
variant: ButtonVariant.primary,
text: 'Restore my account',
onPressed: () {
ExtendedNavigator.root.push(Routes.recoverAccountStepTwoScreen);
},
),
// SizedBox(height: 20.h.toDouble()),
// Button(
// variant: ButtonVariant.primary,
// text: 'Restore my account',
// onPressed: () {
// ignore: lines_longer_than_80_chars
// ExtendedNavigator.root.push(Routes.recoverAccountStepTwoScreen);
// },
// ),
],
),
);
Expand Down
6 changes: 3 additions & 3 deletions lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _MainScreenState extends State<MainScreen> {
child: FutureBuilder<List<Bounty>>(
initialData: const [],
builder: _buildList,
future: bountyService.listOpenBounties(0),
future: bountyService.listOpenBounties(BigInt.one),
),
),
);
Expand All @@ -78,10 +78,10 @@ class _MainScreenState extends State<MainScreen> {
child: BountyItem(
bounty: Bounty(
info: BountyInformation(
issueNumber: i + 1,
issueNumber: BigInt.from(i) + BigInt.one,
repoName: 'sunshine',
repoOwner: 'sunshine',
total: 100,
total: BigInt.from(1000),
),
issue: GithubIssue(
createdAt: DateTime.now(),
Expand Down
Loading

0 comments on commit 9a5e820

Please sign in to comment.