formatted all files.

This commit is contained in:
Faris Armoush
2025-06-12 15:33:32 +03:00
parent 29959f567e
commit 04250ebc98
474 changed files with 5425 additions and 4338 deletions

View File

@ -1,9 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:go_router/go_router.dart';
import 'package:syncrow_web/pages/auth/bloc/auth_bloc.dart';
import 'package:syncrow_web/pages/common/bloc/project_manager.dart';
import 'package:syncrow_web/utils/color_manager.dart';
import 'package:syncrow_web/utils/constants/routes_const.dart';
import 'package:url_launcher/url_launcher.dart';
@ -89,7 +87,7 @@ class _AgreementAndPrivacyDialogState extends State<AgreementAndPrivacyDialog> {
controller: _scrollController,
padding: const EdgeInsets.all(25),
child: Html(
data: "$_dialogContent $staticText",
data: '$_dialogContent $staticText',
onLinkTap: (url, attributes, element) async {
if (url != null) {
final uri = Uri.parse(url);
@ -97,10 +95,10 @@ class _AgreementAndPrivacyDialogState extends State<AgreementAndPrivacyDialog> {
}
},
style: {
"body": Style(
'body': Style(
fontSize: FontSize(14),
color: Colors.black87,
lineHeight: LineHeight(1.5),
lineHeight: const LineHeight(1.5),
),
},
),
@ -110,7 +108,7 @@ class _AgreementAndPrivacyDialogState extends State<AgreementAndPrivacyDialog> {
}
Widget _buildActionButton() {
final String buttonText = _currentPage == 2 ? "I Agree" : "Next";
final buttonText = _currentPage == 2 ? 'I Agree' : 'Next';
return InkWell(
onTap: _isAtEnd
@ -167,7 +165,7 @@ class _AgreementAndPrivacyDialogState extends State<AgreementAndPrivacyDialog> {
AuthBloc.logout(context);
context.go(RoutesConst.auth);
},
child: const Text("Cancel"),
child: const Text('Cancel'),
),
_buildActionButton(),
],