mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
fix: desktop trocador kyc rating info dialog
This commit is contained in:
parent
a00f226f52
commit
22a7763b26
1 changed files with 60 additions and 8 deletions
|
@ -1,6 +1,9 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/widgets/conditional_parent.dart';
|
import 'package:stackwallet/widgets/conditional_parent.dart';
|
||||||
|
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
||||||
|
import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
||||||
|
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||||
import 'package:stackwallet/widgets/exchange/trocador/trocador_kyc_icon.dart';
|
import 'package:stackwallet/widgets/exchange/trocador/trocador_kyc_icon.dart';
|
||||||
import 'package:stackwallet/widgets/exchange/trocador/trocador_rating_type_enum.dart';
|
import 'package:stackwallet/widgets/exchange/trocador/trocador_rating_type_enum.dart';
|
||||||
|
@ -12,9 +15,56 @@ class TrocadorKYCRatingInfo extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final small = MediaQuery.of(context).size.width <= 500;
|
final small = MediaQuery.of(context).size.width <= 500;
|
||||||
|
|
||||||
return ConditionalParent(
|
return ConditionalParent(
|
||||||
condition: !small,
|
condition: !small,
|
||||||
builder: (child) => child,
|
builder: (child) => DesktopDialog(
|
||||||
|
maxHeight: double.infinity,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(left: 32),
|
||||||
|
child: Text(
|
||||||
|
"Trocador KYC Rating",
|
||||||
|
style: STextStyles.desktopH3(context),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const DesktopDialogCloseButton(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 16,
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 32,
|
||||||
|
),
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(32),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
const Spacer(),
|
||||||
|
const SizedBox(
|
||||||
|
width: 16,
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: PrimaryButton(
|
||||||
|
label: "Ok",
|
||||||
|
buttonHeight: ButtonHeight.l,
|
||||||
|
onPressed: Navigator.of(context).pop,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
child: ConditionalParent(
|
child: ConditionalParent(
|
||||||
condition: small,
|
condition: small,
|
||||||
builder: (child) {
|
builder: (child) {
|
||||||
|
@ -24,13 +74,15 @@ class TrocadorKYCRatingInfo extends StatelessWidget {
|
||||||
},
|
},
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
if (small)
|
||||||
"Trocador KYC Rating",
|
Text(
|
||||||
style: STextStyles.pageTitleH2(context),
|
"Trocador KYC Rating",
|
||||||
),
|
style: STextStyles.pageTitleH2(context),
|
||||||
const SizedBox(
|
),
|
||||||
height: 16,
|
if (small)
|
||||||
),
|
const SizedBox(
|
||||||
|
height: 16,
|
||||||
|
),
|
||||||
const _Rating(
|
const _Rating(
|
||||||
kycType: TrocadorKYCType.a,
|
kycType: TrocadorKYCType.a,
|
||||||
text: "Never asks for user verification.",
|
text: "Never asks for user verification.",
|
||||||
|
|
Loading…
Reference in a new issue