Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
random push
Browse files Browse the repository at this point in the history
  • Loading branch information
Sehnryr committed Jan 26, 2022
1 parent 1d86fdc commit e218895
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 42 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
compileSdkVersion 29
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -46,7 +46,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "eu.melois.aurion"
minSdkVersion 16
targetSdkVersion 29
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
Expand Down
88 changes: 50 additions & 38 deletions lib/src/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ class _LoginScreenState extends State<LoginScreen> {
],
),
height: 60.0,
child: TextField(
child: TextFormField(
autofillHints: [AutofillHints.username],
cursorColor: white,
controller: this.usernameController,
keyboardType: TextInputType.text,
Expand Down Expand Up @@ -245,7 +246,9 @@ class _LoginScreenState extends State<LoginScreen> {
],
),
height: 60.0,
child: TextField(
child: TextFormField(
autofillHints: [AutofillHints.password],
// onEditingComplete: () => TextInput.finishAutofillContext(),
cursorColor: white,
controller: this.passwordController,
obscureText: !this._showPassword,
Expand Down Expand Up @@ -304,46 +307,55 @@ class _LoginScreenState extends State<LoginScreen> {
);
}

Widget _buildScreen() {
Widget _buildLoginScreen() {
return ModalProgressHUD(
child: Center(
child: Container(
color: gray,
padding: EdgeInsets.symmetric(horizontal: 30.0, vertical: 30.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("I", style: Theme.of(context).textTheme.headline1),
GestureDetector(
onTap: () => setState(() => _easterEgg1 = !_easterEgg1),
child: Text(
!_easterEgg1 ? 'S' : 'Ç',
style: Theme.of(context).textTheme.headline1,
child: Form(
child: Center(
child: Container(
color: gray,
padding: EdgeInsets.symmetric(horizontal: 30.0, vertical: 30.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("I", style: Theme.of(context).textTheme.headline1),
GestureDetector(
onTap: () => setState(() => _easterEgg1 = !_easterEgg1),
child: Text(
!_easterEgg1 ? 'S' : 'Ç',
style: Theme.of(context).textTheme.headline1,
),
),
Text("EN EDT",
style: Theme.of(context).textTheme.headline1),
],
),
SizedBox(height: 10.0),
Center(
child: Text(
error,
style: TextStyle(
color: Colors.red.withOpacity(0.7),
fontWeight: FontWeight.bold,
),
),
Text("EN EDT", style: Theme.of(context).textTheme.headline1),
],
),
SizedBox(height: 10.0),
Center(
child: Text(
error,
style: TextStyle(
color: Colors.red.withOpacity(0.7),
fontWeight: FontWeight.bold,
),
SizedBox(height: 10.0),
AutofillGroup(
child: Column(
children: [
_buildUsername(),
SizedBox(height: 30.0),
_buildPassword()
],
),
),
),
SizedBox(height: 10.0),
_buildUsername(),
SizedBox(height: 30.0),
_buildPassword(),
SizedBox(height: 30.0),
_buildLoginBtn(),
],
SizedBox(height: 30.0),
_buildLoginBtn(),
],
),
),
),
),
Expand Down Expand Up @@ -406,7 +418,7 @@ class _LoginScreenState extends State<LoginScreen> {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: _isLoggedIn ? _buildScheduleScreen() : _buildScreen(),
body: _isLoggedIn ? _buildScheduleScreen() : _buildLoginScreen(),
);
}
}
2 changes: 1 addition & 1 deletion lib/src/schedule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class _ScheduleScreenState extends State<ScheduleScreen> {
.split(':')
.map((val) => int.parse(val))
.toList();
String title = RegExp(r'^(?:.*?(?: - )){4}(.+?) - ')
String title = RegExp(r'^(?:.*?(?: - )){3}(.+?) - ')
.firstMatch(event['title'])
.group(1);
String description =
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.5
version: 1.0.5+5

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down

0 comments on commit e218895

Please sign in to comment.