Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
InvertedX committed Apr 24, 2024
1 parent 8c3ae3e commit 283581b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/ui/pages/legal/passport_tou.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class TouPage extends StatefulWidget {
}

class _TouPageState extends State<TouPage> {

ScrollController _scrollController = ScrollController();
@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -72,12 +71,13 @@ class _TouPageState extends State<TouPage> {
scrollController: _scrollController,
child: StatefulBuilder(
builder: (context, setState) {
return SingleChildScrollView(
return SingleChildScrollView(
controller: _scrollController,
padding: EdgeInsets.all(4.0),
scrollDirection: Axis.vertical,
child: FutureBuilder<String>(
future: rootBundle.loadString('assets/passport_tou.html'),
future:
rootBundle.loadString('assets/passport_tou.html'),
builder: (context, snapshot) {
if (snapshot.hasData) {
return DefaultTextStyle(
Expand All @@ -97,8 +97,10 @@ class _TouPageState extends State<TouPage> {
),
),
Padding(
padding: EdgeInsets.only(
top: context.isSmallScreen ? EnvoySpacing.medium1 : EnvoySpacing.medium3,
padding: EdgeInsets.only(
top: context.isSmallScreen
? EnvoySpacing.medium1
: EnvoySpacing.medium3,
bottom: EnvoySpacing.medium1,
left: EnvoySpacing.small,
right: EnvoySpacing.small),
Expand Down

0 comments on commit 283581b

Please sign in to comment.