forked from firka/student-legacy
fixed school select (omfg nagyon szarul csinaltak)
This commit is contained in:
parent
5e650869f2
commit
da3abb7fb7
1
.gitignore
vendored
1
.gitignore
vendored
@ -48,3 +48,4 @@ filcnaplo/ios/Podfile.lock
|
|||||||
key.properties
|
key.properties
|
||||||
|
|
||||||
.flutter-plugins*
|
.flutter-plugins*
|
||||||
|
filcnaplo/ios/Flutter/flutter_export_environment 4.sh
|
||||||
|
@ -278,7 +278,10 @@ class _LoginScreenState extends State<LoginScreen> {
|
|||||||
][_loginState.index]
|
][_loginState.index]
|
||||||
.i18n,
|
.i18n,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.red, fontWeight: FontWeight.w500),
|
color: Colors.red,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Spacer()
|
const Spacer()
|
||||||
|
@ -12,51 +12,48 @@ class SchoolInputTile extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.all(4.0),
|
padding: const EdgeInsets.all(4.0),
|
||||||
child: GestureDetector(
|
child: InkWell(
|
||||||
onPanDown: (e) {
|
onTap: () {
|
||||||
onTap!();
|
onTap!();
|
||||||
},
|
},
|
||||||
child: InkWell(
|
borderRadius: BorderRadius.circular(6.0),
|
||||||
onTapDown: (e) {},
|
child: Padding(
|
||||||
borderRadius: BorderRadius.circular(6.0),
|
padding: const EdgeInsets.all(6.0),
|
||||||
child: Padding(
|
child: Column(
|
||||||
padding: const EdgeInsets.all(6.0),
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
child: Column(
|
children: [
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// School name
|
||||||
children: [
|
Padding(
|
||||||
// School name
|
padding: const EdgeInsets.only(bottom: 4.0),
|
||||||
Padding(
|
child: Text(
|
||||||
padding: const EdgeInsets.only(bottom: 4.0),
|
school.name,
|
||||||
child: Text(
|
maxLines: 2,
|
||||||
school.name,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 2,
|
style: const TextStyle(fontWeight: FontWeight.w600),
|
||||||
overflow: TextOverflow.ellipsis,
|
),
|
||||||
style: const TextStyle(fontWeight: FontWeight.w600),
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
// School id
|
||||||
|
Expanded(
|
||||||
|
child: Text(
|
||||||
|
school.instituteCode,
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
// School city
|
||||||
Row(
|
Expanded(
|
||||||
children: [
|
child: Text(
|
||||||
// School id
|
school.city,
|
||||||
Expanded(
|
textAlign: TextAlign.right,
|
||||||
child: Text(
|
maxLines: 1,
|
||||||
school.instituteCode,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
// School city
|
),
|
||||||
Expanded(
|
],
|
||||||
child: Text(
|
),
|
||||||
school.city,
|
],
|
||||||
textAlign: TextAlign.right,
|
|
||||||
maxLines: 1,
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user