2020-05-08 16:22:56 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:cake_wallet/palette.dart';
|
|
|
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
2020-07-29 16:55:42 +00:00
|
|
|
import 'package:cake_wallet/view_model/send_view_model.dart';
|
|
|
|
import 'package:cake_wallet/src/screens/send/widgets/base_send_widget.dart';
|
2020-05-08 16:22:56 +00:00
|
|
|
|
|
|
|
class SendTemplatePage extends BasePage {
|
2020-07-29 16:55:42 +00:00
|
|
|
SendTemplatePage({@required this.sendViewModel});
|
2020-05-08 16:22:56 +00:00
|
|
|
|
2020-07-29 16:55:42 +00:00
|
|
|
final SendViewModel sendViewModel;
|
2020-05-29 15:10:11 +00:00
|
|
|
|
|
|
|
@override
|
2020-07-29 16:55:42 +00:00
|
|
|
String get title => S.current.exchange_new_template;
|
2020-05-08 16:22:56 +00:00
|
|
|
|
|
|
|
@override
|
2020-07-29 16:55:42 +00:00
|
|
|
Color get backgroundLightColor => PaletteDark.nightBlue;
|
2020-05-08 16:22:56 +00:00
|
|
|
|
|
|
|
@override
|
2020-07-29 16:55:42 +00:00
|
|
|
Color get backgroundDarkColor => PaletteDark.nightBlue;
|
2020-05-08 16:22:56 +00:00
|
|
|
|
|
|
|
@override
|
2020-07-29 16:55:42 +00:00
|
|
|
bool get resizeToAvoidBottomPadding => false;
|
2020-05-08 16:22:56 +00:00
|
|
|
|
|
|
|
@override
|
2020-07-29 16:55:42 +00:00
|
|
|
Widget body(BuildContext context) =>
|
|
|
|
BaseSendWidget(sendViewModel: sendViewModel, isTemplate: true);
|
2020-05-08 16:22:56 +00:00
|
|
|
}
|