mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-28 14:39:38 +00:00
51 lines
No EOL
1.5 KiB
Dart
51 lines
No EOL
1.5 KiB
Dart
import 'dart:ui';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
import 'package:cake_wallet/src/screens/exchange/widgets/present_provider_picker.dart';
|
|
import 'package:cake_wallet/src/screens/exchange/widgets/base_exchange_widget.dart';
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
|
import 'package:cake_wallet/view_model/exchange/exchange_view_model.dart';
|
|
|
|
class ExchangeTemplatePage extends BasePage {
|
|
ExchangeTemplatePage(this.exchangeViewModel);
|
|
|
|
final ExchangeViewModel exchangeViewModel;
|
|
|
|
@override
|
|
String get title => S.current.exchange_new_template;
|
|
|
|
@override
|
|
Color get titleColor => Colors.white;
|
|
|
|
@override
|
|
Color get backgroundLightColor => Colors.transparent;
|
|
|
|
@override
|
|
Color get backgroundDarkColor => Colors.transparent;
|
|
|
|
@override
|
|
Widget trailing(BuildContext context) =>
|
|
PresentProviderPicker(exchangeViewModel: exchangeViewModel);
|
|
|
|
@override
|
|
Widget body(BuildContext context) =>
|
|
BaseExchangeWidget(
|
|
exchangeViewModel: exchangeViewModel,
|
|
leading: leading(context),
|
|
middle: middle(context),
|
|
trailing: trailing(context),
|
|
isTemplate: true
|
|
);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
resizeToAvoidBottomPadding: resizeToAvoidBottomPadding,
|
|
body: Container(
|
|
color: Theme.of(context).backgroundColor,
|
|
child: body(context)
|
|
)
|
|
);
|
|
}
|
|
} |