76 lines
2.3 KiB
Dart
76 lines
2.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:url_launcher/url_launcher_string.dart';
|
|
|
|
import '../../Backend/Backend.dart';
|
|
import '../CustomWidgets.dart';
|
|
|
|
Widget AccountPage(){
|
|
return Padding(
|
|
padding: const EdgeInsets.all(25.0),
|
|
child: Column(
|
|
children: [
|
|
Row(
|
|
children: [
|
|
Text("Hello, ${Backend.displayName}", style: TextStyle(fontSize: 30)),
|
|
],
|
|
),
|
|
SizedBox(height: 100,),
|
|
Text(Backend.pubKey),
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Column(
|
|
children: [
|
|
Text("Vault Credits",style: TextStyle(fontWeight: FontWeight.bold,fontSize: 15),),
|
|
Row(
|
|
children: [
|
|
Image.asset('images/vault.png',width: 40,height: 40,),
|
|
Text(Backend.vault.php.toString(),style: TextStyle(fontSize: 50),),
|
|
],
|
|
)
|
|
],
|
|
),
|
|
SizedBox(width: 60,),
|
|
Column(
|
|
children: [
|
|
Text("Pre-hunt Points",style: TextStyle(fontWeight: FontWeight.bold,fontSize: 15),),
|
|
Row(
|
|
children: [
|
|
Image.asset('images/token.png',width: 40,height: 40,),
|
|
Text(Backend.vault.vc.toString(),style: TextStyle(fontSize: 50),),
|
|
],
|
|
)
|
|
],
|
|
),
|
|
],
|
|
),
|
|
// Text("Your wallet address is "),
|
|
// Row(
|
|
// mainAxisAlignment: MainAxisAlignment.center,
|
|
// children: [
|
|
// Text(Backend.walletAddress, style: TextStyle(fontSize: 25),),
|
|
// InkWell(child: Padding(
|
|
// padding: const EdgeInsets.all(16.0),
|
|
// child: Icon(Icons.copy),
|
|
// ), onTap: (){
|
|
// //Copy wallet
|
|
// },)
|
|
// ],
|
|
// ),
|
|
SizedBox(height: 50,),
|
|
GlassButton(onTap: (){
|
|
launchUrlString('https://auth.playpoolstudios.com');
|
|
}, child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text("Open Dashboard"),
|
|
SizedBox(width: 10,),
|
|
Icon(Icons.open_in_new, color: Colors.grey)
|
|
],
|
|
), width: 250, height: 50)
|
|
|
|
],
|
|
),
|
|
);
|
|
}
|