update pin login
This commit is contained in:
@@ -357,7 +357,7 @@ class _HomePageState extends State<HomePage> {
|
||||
selectedColor: Colors.white,
|
||||
color: Colors.blue,
|
||||
children: <Widget>[
|
||||
Icon(MaterialCommunityIcons.account_tie),
|
||||
Icon(MaterialCommunityIcons.account_tie,size: 25),
|
||||
],
|
||||
onPressed: (i) => this.setState(() {
|
||||
isFcs[0] = !isFcs[0];
|
||||
@@ -366,7 +366,7 @@ class _HomePageState extends State<HomePage> {
|
||||
isSelected: isFcs,
|
||||
selectedBorderColor: Colors.white24,
|
||||
);
|
||||
|
||||
|
||||
final signinBtn = TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context)
|
||||
@@ -381,16 +381,23 @@ class _HomePageState extends State<HomePage> {
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(RightLeftPageRoute(Profile()));
|
||||
},
|
||||
iconSize: 30,
|
||||
icon: Icon(Icons.account_circle,color: buttonColor,),
|
||||
iconSize: 25,
|
||||
icon: Icon(
|
||||
Icons.account_circle,
|
||||
color: buttonColor,
|
||||
),
|
||||
);
|
||||
|
||||
final pinLoginBtn = IconButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => PinLoginPage()));
|
||||
},
|
||||
iconSize: 30,
|
||||
icon: Icon(SimpleLineIcons.lock,color: buttonColor,),
|
||||
iconSize: 25,
|
||||
icon: Icon(
|
||||
Icons.lock_outline,
|
||||
color: buttonColor,
|
||||
),
|
||||
);
|
||||
|
||||
var searchInput = Row(children: [
|
||||
@@ -468,15 +475,15 @@ class _HomePageState extends State<HomePage> {
|
||||
actions: login
|
||||
? user.isCustomer()
|
||||
? <Widget>[
|
||||
profileBtn,
|
||||
profileBtn,
|
||||
]
|
||||
: <Widget>[
|
||||
fcsToggle,
|
||||
pinLoginBtn,
|
||||
fcsToggle,
|
||||
profileBtn,
|
||||
]
|
||||
: <Widget>[
|
||||
signinBtn,
|
||||
signinBtn,
|
||||
]),
|
||||
body: Container(
|
||||
decoration: BoxDecoration(
|
||||
@@ -506,8 +513,6 @@ class _HomePageState extends State<HomePage> {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
_lookup() async {
|
||||
setState(() {
|
||||
_isLoading = true;
|
||||
@@ -515,7 +520,7 @@ class _HomePageState extends State<HomePage> {
|
||||
|
||||
try {
|
||||
String term = _searchCtl.text;
|
||||
if ( term.trim() == "") return;
|
||||
if (term.trim() == "") return;
|
||||
var packageModel = Provider.of<PackageModel>(context, listen: false);
|
||||
Package? package = await packageModel.lookupPackage(term);
|
||||
if (package == null) {
|
||||
|
||||
Reference in New Issue
Block a user