fixed school select (omfg nagyon szarul csinaltak)

This commit is contained in:
Kima 2023-09-04 17:10:09 +02:00
parent 5e650869f2
commit da3abb7fb7
3 changed files with 43 additions and 42 deletions

1
.gitignore vendored
View File

@ -48,3 +48,4 @@ filcnaplo/ios/Podfile.lock
key.properties key.properties
.flutter-plugins* .flutter-plugins*
filcnaplo/ios/Flutter/flutter_export_environment 4.sh

View File

@ -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()

View File

@ -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,
),
),
],
),
],
),
), ),
), ),
), ),