import 'package:doctor_app_flutter/core/viewModel/authentication_view_model.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:flutter/material.dart'; import 'package:hexcolor/hexcolor.dart'; import '../../widgets/auth/verification_methods.dart'; class VerificationMethodsScreen extends StatefulWidget { const VerificationMethodsScreen({Key key, this.password}) : super(key: key); @override _VerificationMethodsScreenState createState() => _VerificationMethodsScreenState(); final password; } class _VerificationMethodsScreenState extends State { bool _isLoading = false; void changeLoadingState(isLoading) { setState(() { _isLoading = isLoading; }); } @override Widget build(BuildContext context) { return BaseView( builder: (_, model, w) => AppScaffold( isLoading: _isLoading, isShowAppBar: false, isHomeIcon: false, backgroundColor: HexColor('#F8F8F8'), body:VerificationMethods( password: widget.password, changeLoadingState: changeLoadingState, // model:model ))); } }