import 'package:flutter/material.dart'; import 'package:openclosenew/verification.dart'; class Register extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, body: SafeArea( child: Padding( padding: EdgeInsets.only(left: 24, right: 24, bottom: 24), child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, children: [ Spacer(), Image.asset( 'assets/images/login.png', ), SizedBox( height: 24, ), Text( "Welcome!", style: TextStyle( fontSize: 24, color: Color(0xff12C193), ), ), SizedBox( height: 24, ), Text( "Enter your mobile number to verification ", style: TextStyle( fontSize: 12, color: Colors.black, ), ), SizedBox( height: 24, ), Row( children: [ Image.asset('assets/images/india.png'), SizedBox( width: 8, ), Text('+91'), SizedBox( width: 8, ), Expanded( child: TextField( keyboardType: TextInputType.phone, decoration: InputDecoration( border: InputBorder.none, hintText: 'Mobile Number', ), ), ), ], ), Spacer(), MaterialButton( height: 50, minWidth: double.infinity, color: Color(0xff12C193), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(4)), onPressed: () { Navigator.push(context, MaterialPageRoute(builder: (_) => verification())); }, child: Text( 'Get OTP', style: TextStyle(color: Colors.white, fontSize: 15), ), ), ], ), ), ), ); } }