Initial commit
This commit is contained in:
26
lib/app/terms_and_condition/terms_and_condition_screen.dart
Normal file
26
lib/app/terms_and_condition/terms_and_condition_screen.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user