cake_wallet/lib/src/screens/send/send_template_page.dart

43 lines
1.2 KiB
Dart
Raw Normal View History

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';
import 'package:cake_wallet/src/screens/send/widgets/base_send_widget.dart';
class SendTemplatePage extends BasePage {
SendTemplatePage({@required this.sendViewModel});
final SendViewModel sendViewModel;
@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
bool get resizeToAvoidBottomPadding => false;
@override
2020-09-02 08:47:41 +00:00
Widget body(BuildContext context) => BaseSendWidget(
sendViewModel: sendViewModel,
leading: leading(context),
middle: middle(context),
isTemplate: true);
@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-09-02 08:47:41 +00:00
}