2020-05-08 16:22:56 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
2020-09-02 08:47:41 +00:00
|
|
|
import 'package:cake_wallet/view_model/send/send_view_model.dart';
|
2020-07-29 16:55:42 +00:00
|
|
|
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-08-20 17:43:54 +00:00
|
|
|
Color get titleColor => Colors.white;
|
2020-05-08 16:22:56 +00:00
|
|
|
|
|
|
|
@override
|
2020-08-20 17:43:54 +00:00
|
|
|
Color get backgroundLightColor => Colors.transparent;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Color get backgroundDarkColor => Colors.transparent;
|
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-09-02 08:47:41 +00:00
|
|
|
Widget body(BuildContext context) => BaseSendWidget(
|
|
|
|
sendViewModel: sendViewModel,
|
|
|
|
leading: leading(context),
|
|
|
|
middle: middle(context),
|
|
|
|
isTemplate: true);
|
2020-08-20 17:43:54 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
2020-09-02 08:47:41 +00:00
|
|
|
resizeToAvoidBottomPadding: resizeToAvoidBottomPadding,
|
|
|
|
body: Container(
|
|
|
|
color: Theme.of(context).backgroundColor, child: body(context)));
|
2020-08-20 17:43:54 +00:00
|
|
|
}
|
2020-09-02 08:47:41 +00:00
|
|
|
}
|