import 'package:driver/constant/constant.dart'; import 'package:driver/themes/app_them_data.dart'; import 'package:flutter/material.dart'; import 'package:flutter_html/flutter_html.dart'; class TermsAndConditionScreen extends StatelessWidget { final String? type; const TermsAndConditionScreen({super.key, this.type}); @override Widget build(BuildContext context) { return Scaffold( backgroundColor: AppThemeData.grey50, body: Padding( padding: const EdgeInsets.symmetric(horizontal: 14), child: SingleChildScrollView( child: Html( shrinkWrap: true, data: type == "privacy" ? Constant.privacyPolicy : Constant.termsAndConditions, ), ), ), ); } }