import 'package:diplomaticquarterapp/core/viewModels/TermsConditionsViewModel.dart';
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_html/flutter_html.dart';

class UserAgreementPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return BaseView<TermsConditionsViewModel>(
      onModelReady: (model) => model.getUserTermsAndConditions(),
      builder: (_, model, w) => AppScaffold(
          isShowAppBar: true,
          showNewAppBarTitle: true,
          showNewAppBar: true,
          isShowDecPage: false,
          appBarTitle: TranslationBase.of(context).userAgreement,
          body: SingleChildScrollView(
            child: Html(
              data: model.userAgreementContent,
            ),
          )),
    );
  }
}
