You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
136 lines
4.6 KiB
Dart
136 lines
4.6 KiB
Dart
|
2 years ago
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
||
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class HelpPRO extends StatefulWidget {
|
||
|
|
const HelpPRO({Key key}) : super(key: key);
|
||
|
|
|
||
|
|
@override
|
||
|
|
State<HelpPRO> createState() => _HelpPROState();
|
||
|
|
}
|
||
|
|
|
||
|
|
class _HelpPROState extends State<HelpPRO> {
|
||
|
|
|
||
|
|
TextEditingController assistText = new TextEditingController();
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return AppScaffold(
|
||
|
|
isShowAppBar: true,
|
||
|
|
isShowDecPage: false,
|
||
|
|
showNewAppBarTitle: true,
|
||
|
|
showNewAppBar: true,
|
||
|
|
appBarTitle: "Patient Relation Officer",
|
||
|
|
body: SingleChildScrollView(
|
||
|
|
child: Container(
|
||
|
|
width: MediaQuery.of(context).size.width,
|
||
|
|
decoration: containerRadius(Colors.white, 12),
|
||
|
|
margin: EdgeInsets.all(21.0),
|
||
|
|
padding: const EdgeInsets.all(21.0),
|
||
|
|
child: Column(
|
||
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
|
children: [
|
||
|
|
Text(
|
||
|
|
"How we may assist you?",
|
||
|
|
overflow: TextOverflow.clip,
|
||
|
|
style: TextStyle(
|
||
|
|
fontSize: 16.0,
|
||
|
|
fontWeight: FontWeight.w600,
|
||
|
|
color: Color(0xff2B353E),
|
||
|
|
letterSpacing: -0.64,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
mHeight(16),
|
||
|
|
inputWidget(TranslationBase.of(context).enterDetails, "", assistText),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
Widget inputWidget(String _labelText, String _hintText, TextEditingController _controller, {String prefix, bool isEnable = true, bool hasSelection = false}) {
|
||
|
|
return Container(
|
||
|
|
padding: EdgeInsets.only(left: 16, right: 16, bottom: 15, top: 15),
|
||
|
|
alignment: Alignment.center,
|
||
|
|
decoration: BoxDecoration(
|
||
|
|
borderRadius: BorderRadius.circular(12),
|
||
|
|
color: Colors.white,
|
||
|
|
border: Border.all(
|
||
|
|
color: Color(0xffefefef),
|
||
|
|
width: 1,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: InkWell(
|
||
|
|
onTap: hasSelection ? () {} : null,
|
||
|
|
child: Row(
|
||
|
|
children: [
|
||
|
|
Expanded(
|
||
|
|
child: Column(
|
||
|
|
mainAxisSize: MainAxisSize.min,
|
||
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
|
children: [
|
||
|
|
Text(
|
||
|
|
_labelText,
|
||
|
|
style: TextStyle(
|
||
|
|
fontSize: 11,
|
||
|
|
fontWeight: FontWeight.w600,
|
||
|
|
color: Color(0xff2B353E),
|
||
|
|
letterSpacing: -0.44,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
TextField(
|
||
|
|
enabled: isEnable,
|
||
|
|
scrollPadding: EdgeInsets.zero,
|
||
|
|
keyboardType: TextInputType.name,
|
||
|
|
controller: _controller,
|
||
|
|
onChanged: (value) => {},
|
||
|
|
style: TextStyle(
|
||
|
|
fontSize: 14,
|
||
|
|
height: 21 / 14,
|
||
|
|
fontWeight: FontWeight.w400,
|
||
|
|
color: Color(0xff2B353E),
|
||
|
|
letterSpacing: -0.44,
|
||
|
|
),
|
||
|
|
decoration: InputDecoration(
|
||
|
|
isDense: true,
|
||
|
|
hintText: _hintText,
|
||
|
|
hintStyle: TextStyle(
|
||
|
|
fontSize: 14,
|
||
|
|
height: 21 / 14,
|
||
|
|
fontWeight: FontWeight.w400,
|
||
|
|
color: Color(0xff575757),
|
||
|
|
letterSpacing: -0.56,
|
||
|
|
),
|
||
|
|
prefixIconConstraints: BoxConstraints(minWidth: 50),
|
||
|
|
prefixIcon: prefix == null
|
||
|
|
? null
|
||
|
|
: Text(
|
||
|
|
"+" + prefix,
|
||
|
|
style: TextStyle(
|
||
|
|
fontSize: 14,
|
||
|
|
height: 21 / 14,
|
||
|
|
fontWeight: FontWeight.w500,
|
||
|
|
color: Color(0xff2E303A),
|
||
|
|
letterSpacing: -0.56,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
contentPadding: EdgeInsets.zero,
|
||
|
|
border: InputBorder.none,
|
||
|
|
focusedBorder: InputBorder.none,
|
||
|
|
enabledBorder: InputBorder.none,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
if (hasSelection) Icon(Icons.keyboard_arrow_down_outlined),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|