update ui
This commit is contained in:
@@ -9,7 +9,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def keystoreProperties = new Properties()
|
def keystoreProperties = new Properties()
|
||||||
def keystorePropertiesFile = rootProject.file('key.properties')
|
def keystorePropertiesFile = rootProject.file('dev-key.properties')
|
||||||
if (keystorePropertiesFile.exists()) {
|
if (keystorePropertiesFile.exists()) {
|
||||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ pluginManagement {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
id "com.android.application" version "8.1.0" apply false
|
id "com.android.application" version "8.2.1" apply false
|
||||||
// START: FlutterFire Configuration
|
// START: FlutterFire Configuration
|
||||||
id "com.google.gms.google-services" version "4.3.15" apply false
|
id "com.google.gms.google-services" version "4.3.15" apply false
|
||||||
// END: FlutterFire Configuration
|
// END: FlutterFire Configuration
|
||||||
|
|||||||
@@ -107,8 +107,8 @@ class _HomePageState extends State<HomePage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_startNotiTimer() async {
|
_startNotiTimer() async {
|
||||||
var _duration = new Duration(milliseconds: 500);
|
var _duration = Duration(milliseconds: 500);
|
||||||
new Timer.periodic(_duration, (t) => displayNoti(t));
|
Timer.periodic(_duration, (t) => displayNoti(t));
|
||||||
}
|
}
|
||||||
|
|
||||||
void displayNoti(Timer timer) async {
|
void displayNoti(Timer timer) async {
|
||||||
@@ -388,15 +388,15 @@ class _HomePageState extends State<HomePage> {
|
|||||||
final fcsToggle = ToggleButtons(
|
final fcsToggle = ToggleButtons(
|
||||||
selectedColor: Colors.white,
|
selectedColor: Colors.white,
|
||||||
color: Colors.blue,
|
color: Colors.blue,
|
||||||
children: <Widget>[
|
onPressed: (i) => setState(() {
|
||||||
Icon(MaterialCommunityIcons.account_tie, size: 25),
|
|
||||||
],
|
|
||||||
onPressed: (i) => this.setState(() {
|
|
||||||
isFcs[0] = !isFcs[0];
|
isFcs[0] = !isFcs[0];
|
||||||
SharedPref.saveStaffMode(isFcs[0]);
|
SharedPref.saveStaffMode(isFcs[0]);
|
||||||
}),
|
}),
|
||||||
isSelected: isFcs,
|
isSelected: isFcs,
|
||||||
selectedBorderColor: Colors.white24,
|
selectedBorderColor: Colors.white24,
|
||||||
|
children: <Widget>[
|
||||||
|
Icon(MaterialCommunityIcons.account_tie, size: 25),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
final signinBtn = TextButton(
|
final signinBtn = TextButton(
|
||||||
@@ -459,12 +459,14 @@ class _HomePageState extends State<HomePage> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
var searchInput = Row(children: [
|
var searchInput = Padding(
|
||||||
|
padding: const EdgeInsets.only(left: 5, right: 5, bottom: 10, top: 5),
|
||||||
|
child: Row(children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 3, left: 5, right: 5, top: 3),
|
padding: const EdgeInsets.only(),
|
||||||
child: Theme(
|
child: Theme(
|
||||||
data: new ThemeData(
|
data: ThemeData(
|
||||||
primaryColor: primaryColor,
|
primaryColor: primaryColor,
|
||||||
primaryColorDark: primaryColor,
|
primaryColorDark: primaryColor,
|
||||||
),
|
),
|
||||||
@@ -472,33 +474,26 @@ class _HomePageState extends State<HomePage> {
|
|||||||
style: TextStyle(color: Colors.white),
|
style: TextStyle(color: Colors.white),
|
||||||
controller: _searchCtl,
|
controller: _searchCtl,
|
||||||
scrollPadding: EdgeInsets.all(0),
|
scrollPadding: EdgeInsets.all(0),
|
||||||
decoration: new InputDecoration(
|
cursorColor: Colors.white,
|
||||||
|
decoration: InputDecoration(
|
||||||
enabledBorder: const OutlineInputBorder(
|
enabledBorder: const OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(30)),
|
borderRadius: BorderRadius.all(Radius.circular(30)),
|
||||||
borderSide:
|
borderSide: BorderSide(color: Colors.white60, width: 1.5),
|
||||||
const BorderSide(color: Colors.white, width: 1.5),
|
|
||||||
),
|
),
|
||||||
focusedBorder: const OutlineInputBorder(
|
focusedBorder: const OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(30)),
|
borderRadius: BorderRadius.all(Radius.circular(30)),
|
||||||
borderSide:
|
borderSide: BorderSide(color: Colors.white60, width: 1.5),
|
||||||
const BorderSide(color: Colors.white, width: 1.5),
|
|
||||||
),
|
),
|
||||||
contentPadding: EdgeInsets.only(top: 1, bottom: 1),
|
contentPadding: EdgeInsets.only(top: 1, bottom: 1),
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: getLocalString(context, "home.search"),
|
hintText: getLocalString(context, "home.search"),
|
||||||
hintStyle: languageModel.isEng
|
hintStyle: languageModel.isEng
|
||||||
? newLabelStyle(color: Colors.white60)
|
? newLabelStyle(color: Colors.grey)
|
||||||
: newLabelStyleMM(color: Colors.white60),
|
: newLabelStyleMM(color: Colors.grey),
|
||||||
prefixIcon: const Icon(
|
prefixIcon: const Icon(Icons.search, color: Colors.grey),
|
||||||
Icons.search,
|
|
||||||
color: Colors.grey,
|
|
||||||
),
|
|
||||||
suffixIcon: InkWell(
|
suffixIcon: InkWell(
|
||||||
onTap: () => {_searchCtl.clear()},
|
onTap: () => {_searchCtl.clear()},
|
||||||
child: const Icon(
|
child: const Icon(Icons.close, color: Colors.grey),
|
||||||
Icons.close,
|
|
||||||
color: Colors.grey,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
suffixStyle: const TextStyle(color: primaryColor)),
|
suffixStyle: const TextStyle(color: primaryColor)),
|
||||||
),
|
),
|
||||||
@@ -506,6 +501,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
|
onTap: _lookup,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(10.0),
|
padding: const EdgeInsets.all(10.0),
|
||||||
child: LocalText(
|
child: LocalText(
|
||||||
@@ -514,9 +510,9 @@ class _HomePageState extends State<HomePage> {
|
|||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onTap: _lookup,
|
|
||||||
)
|
)
|
||||||
]);
|
]),
|
||||||
|
);
|
||||||
widgets.insert(0, searchInput);
|
widgets.insert(0, searchInput);
|
||||||
|
|
||||||
return LocalProgress(
|
return LocalProgress(
|
||||||
@@ -528,8 +524,8 @@ class _HomePageState extends State<HomePage> {
|
|||||||
elevation: 0,
|
elevation: 0,
|
||||||
backgroundColor: primaryColor,
|
backgroundColor: primaryColor,
|
||||||
title: ClipRRect(
|
title: ClipRRect(
|
||||||
|
borderRadius: BorderRadius.circular(30.0),
|
||||||
child: Image.asset("assets/logo.jpg", height: 40),
|
child: Image.asset("assets/logo.jpg", height: 40),
|
||||||
borderRadius: new BorderRadius.circular(30.0),
|
|
||||||
),
|
),
|
||||||
actions: login
|
actions: login
|
||||||
? user.isCustomer()
|
? user.isCustomer()
|
||||||
@@ -557,6 +553,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
),
|
),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
const SizedBox(height: 10),
|
||||||
Column(children: [
|
Column(children: [
|
||||||
Wrap(
|
Wrap(
|
||||||
alignment: WrapAlignment.center,
|
alignment: WrapAlignment.center,
|
||||||
|
|||||||
@@ -112,6 +112,11 @@ class _SmsCodePageState extends State<SmsCodePage> {
|
|||||||
padding: EdgeInsets.only(top: 20, left: 20, right: 20),
|
padding: EdgeInsets.only(top: 20, left: 20, right: 20),
|
||||||
child: PinInputTextField(
|
child: PinInputTextField(
|
||||||
pinLength: 6,
|
pinLength: 6,
|
||||||
|
cursor: Cursor(
|
||||||
|
color: primaryColor,
|
||||||
|
enabled: true,
|
||||||
|
width: 2,
|
||||||
|
height: 23),
|
||||||
decoration: BoxLooseDecoration(
|
decoration: BoxLooseDecoration(
|
||||||
strokeColorBuilder: PinListenColorBuilder(
|
strokeColorBuilder: PinListenColorBuilder(
|
||||||
primaryColor, Colors.grey.shade400)),
|
primaryColor, Colors.grey.shade400)),
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ class _TermEditorState extends State<TermEditor> {
|
|||||||
title:
|
title:
|
||||||
LocalText(context, 'term', fontSize: 20, color: primaryColor),
|
LocalText(context, 'term', fontSize: 20, color: primaryColor),
|
||||||
bottom: TabBar.secondary(
|
bottom: TabBar.secondary(
|
||||||
|
dividerColor: Colors.grey.shade400,
|
||||||
indicatorColor: primaryColor,
|
indicatorColor: primaryColor,
|
||||||
labelColor: primaryColor,
|
labelColor: primaryColor,
|
||||||
labelStyle:
|
labelStyle:
|
||||||
@@ -117,14 +118,16 @@ class _TermEditorState extends State<TermEditor> {
|
|||||||
children: [
|
children: [
|
||||||
isEdit
|
isEdit
|
||||||
? Padding(
|
? Padding(
|
||||||
padding: const EdgeInsets.all(15),
|
padding: const EdgeInsets.only(
|
||||||
|
left: 15, right: 15, top: 20, bottom: 8),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
controller: enController,
|
controller: enController,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 15, color: Colors.black87),
|
fontSize: 15, color: Colors.black87),
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
border: InputBorder.none),
|
border: InputBorder.none,
|
||||||
|
),
|
||||||
cursorColor: primaryColor,
|
cursorColor: primaryColor,
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
@@ -149,7 +152,8 @@ class _TermEditorState extends State<TermEditor> {
|
|||||||
),
|
),
|
||||||
isEdit
|
isEdit
|
||||||
? Padding(
|
? Padding(
|
||||||
padding: const EdgeInsets.all(15),
|
padding: const EdgeInsets.only(
|
||||||
|
left: 15, right: 15, top: 20, bottom: 8),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14, color: Colors.black87),
|
fontSize: 14, color: Colors.black87),
|
||||||
|
|||||||
Reference in New Issue
Block a user