2020-08-26 17:31:23 +00:00
|
|
|
import 'dart:ui';
|
|
|
|
import 'package:cake_wallet/generated/i18n.dart';
|
|
|
|
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:cake_wallet/src/widgets/alert_background.dart';
|
|
|
|
|
|
|
|
class InformationPage extends StatelessWidget {
|
2022-10-12 17:09:57 +00:00
|
|
|
InformationPage({required this.information});
|
2020-08-26 17:31:23 +00:00
|
|
|
|
|
|
|
final String information;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return AlertBackground(
|
|
|
|
child: Center(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: 24,
|
|
|
|
right: 24
|
|
|
|
),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(30)),
|
2022-10-12 17:09:57 +00:00
|
|
|
color: Theme.of(context).textTheme!.bodyText1!.decorationColor!
|
2020-08-26 17:31:23 +00:00
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.fromLTRB(24, 28, 24, 24),
|
|
|
|
child: Text(
|
|
|
|
information,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.normal,
|
2020-11-11 15:55:18 +00:00
|
|
|
fontFamily: 'Lato',
|
2020-08-26 17:31:23 +00:00
|
|
|
decoration: TextDecoration.none,
|
2022-10-12 17:09:57 +00:00
|
|
|
color: Theme.of(context).accentTextTheme!.caption!.decorationColor!
|
2020-08-26 17:31:23 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 10),
|
|
|
|
child: PrimaryButton(
|
|
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
|
|
text: S.of(context).send_got_it,
|
2022-10-12 17:09:57 +00:00
|
|
|
color: Theme.of(context).accentTextTheme!.caption!.backgroundColor!,
|
|
|
|
textColor: Theme.of(context).primaryTextTheme!.headline6!.color!
|
2020-08-26 17:31:23 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|