import 'package:doctor_app_flutter/config/size_config.dart'; import 'package:doctor_app_flutter/core/viewModel/PatientRegistrationViewModel.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:flutter/material.dart'; import 'package:hexcolor/hexcolor.dart'; class ActivationPage extends StatefulWidget { const ActivationPage({Key key}) : super(key: key); @override _ActivationPageState createState() => _ActivationPageState(); } class _ActivationPageState extends State { @override Widget build(BuildContext context) { return BaseView( builder: (_, model, w) => AppScaffold( baseViewModel: model, isShowAppBar: false, body: Column( children: [ Container( width: double.infinity, margin: EdgeInsets.all(16.0), child: SingleChildScrollView( child: Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ AppText( "Please select how you want to be verified", fontFamily: 'Poppins', fontSize: SizeConfig.textMultiplier * 2.2, fontWeight: FontWeight.w800, ), Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Expanded( child: InkWell( onTap: () { model.sendActivationCodeByOTPNotificationType( otpType: 1); }, child: Container( height: MediaQuery.of(context).size.height * 0.233, margin: EdgeInsets.all(10), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all( Radius.circular(10), ), border: Border.all( color: HexColor('#707070'), width: 0.1), ), child: Column( children: [ Row( children: [ Image.asset( "assets/images/verify-sms.png", height: MediaQuery.of(context).size.height * 0.15, width: MediaQuery.of(context).size.width * 0.15, ), ], ), SizedBox( height: 20, ), AppText( "Verify through SMS", fontSize: 14, color: Color(0xFF2E303A), fontWeight: FontWeight.bold, ) ], ), ), ), ), Expanded( child: InkWell( onTap: () { model.sendActivationCodeByOTPNotificationType( otpType: 1); }, child: Container( height: MediaQuery.of(context).size.height * 0.233, margin: EdgeInsets.all(10), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all( Radius.circular(10), ), border: Border.all( color: HexColor('#707070'), width: 0.1), ), child: Column( children: [ Row( children: [ Image.asset( "assets/images/verify-whtsapp.png", height: MediaQuery.of(context).size.height * 0.15, width: MediaQuery.of(context).size.width * 0.15, ), ], ), SizedBox( height: 20, ), AppText( "Verify through WhatsApp", fontSize: 14, color: Color(0xFF2E303A), fontWeight: FontWeight.bold, ) ], ), ), ), ), ], ), ], ), ), ) ], ), ), ); } }