import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:flutter/material.dart'; import '../../lookups/auth_lookup.dart'; import '../../widgets/auth/auth_header.dart'; import '../../widgets/auth/verification_methods.dart'; /* *@author: Elham Rababah *@Date:4/7/2020 *@param: *@return: *@desc: Verification Methods screen */ 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; /* *@author: Elham Rababah *@Date:19/4/2020 *@param: isLoading *@return: *@desc: Change Isloading attribute in order to show or hide loader */ void changeLoadingStata(isLoading) { setState(() { _isLoading = isLoading; }); } @override Widget build(BuildContext context) { return AppScaffold( isLoading: _isLoading, isShowAppBar: false, body: ListView(children: [ Container( margin: EdgeInsetsDirectional.fromSTEB(30, 0, 30, 0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ AuthHeader(loginType.verificationMethods), VerificationMethods( password: widget.password, changeLoadingStata: changeLoadingStata, ), ], ), ), ])); } }