Skip to content

Commit

Permalink
Allow privacy disclosure to scroll on small screens, closes getlanter…
Browse files Browse the repository at this point in the history
…n/engineering#474
  • Loading branch information
oxtoacart committed Oct 15, 2023
1 parent d236ee0 commit 4289a6a
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions lib/account/privacy_disclosure.dart
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
import 'package:lantern/common/common.dart';

class PrivacyDisclosure extends StatelessWidget {
const PrivacyDisclosure({super.key});

@override
Widget build(BuildContext context) {
return FullScreenDialog(
widget: Padding(
padding: EdgeInsetsDirectional.only(
start: 33, end: 33),
padding: const EdgeInsetsDirectional.only(start: 33, end: 33),
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
margin: const EdgeInsetsDirectional.only(top: 38),
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
margin: const EdgeInsetsDirectional.only(top: 38),
child: CText(
'privacy_disclosure_title'.i18n,
style: tsSubtitle1.copiedWith(fontSize: 24.0),
)),
Padding(
padding: EdgeInsetsDirectional.only(top: 24, bottom: 24),
child: CText(
'privacy_disclosure_body'.i18n,
style: tsBody2.copiedWith(fontSize: 14.0, lineHeight: 24.0),
),
),
const Spacer(),
Container(
margin: const EdgeInsetsDirectional.only(bottom: 38),
child: Button(
width: 200,
text: 'privacy_disclosure_accept'.i18n,
onPressed: () async => await sessionModel.acceptTerms(),
)),
])),
),
Padding(
padding: const EdgeInsetsDirectional.only(top: 24, bottom: 24),
child: CText(
'privacy_disclosure_body'.i18n,
style: tsBody2.copiedWith(fontSize: 14.0, lineHeight: 24.0),
),
),
Container(
margin: const EdgeInsetsDirectional.only(bottom: 38),
child: Button(
width: 200,
text: 'privacy_disclosure_accept'.i18n,
onPressed: () async => await sessionModel.acceptTerms(),
),
),
],
),
),
),
);
}
}

0 comments on commit 4289a6a

Please sign in to comment.