Skip to content

Commit

Permalink
fix backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelg committed Oct 31, 2019
1 parent 5463adc commit 71a1be6
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 59 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# argo_scuolanext_famiglia_unofficial_app
App open-source non ufficiale per Argo ScuolaNext Famiglia.

- [Download](https://github.com/peppelg/argo_scuolanext_famiglia_unofficial_app/releases/download/1.0.0%2B6/app-release.apk)
- [Download](https://github.com/peppelg/argo_scuolanext_famiglia_unofficial_app/releases/download/1.0.0%2B7/app-release.apk)
- [Sito dell'app](https://peppelg.space/argo_famiglia)
- [Canale Telegram](https://t.me/scuolanext)

Expand Down
118 changes: 61 additions & 57 deletions lib/backdropWidgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,65 @@ import 'package:flutter/material.dart';

getBackdrop(context) {
return Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/voti');
},
child: Text('I miei voti', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/note');
},
child: Text('Note', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/assenze');
},
child: Text('Assenze', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/compiti');
},
child:
Text('Compiti assegnati', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/lezioni');
},
child:
Text('Argomenti lezione', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/oggi');
},
child: Text('Cosa è successo oggi',
style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/info');
},
child: Text('Informazioni', style: TextStyle(color: Colors.white)),
))
]));
child: Padding(
padding: EdgeInsets.only(top: 20, bottom: 40),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/voti');
},
child: Text('I miei voti',
style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/note');
},
child: Text('Note', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/assenze');
},
child: Text('Assenze', style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/compiti');
},
child: Text('Compiti assegnati',
style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/lezioni');
},
child: Text('Argomenti lezione',
style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/oggi');
},
child: Text('Cosa è successo oggi',
style: TextStyle(color: Colors.white)),
)),
Expanded(
child: FlatButton(
onPressed: () {
Navigator.of(context).pushReplacementNamed('/info');
},
child: Text('Informazioni',
style: TextStyle(color: Colors.white)),
))
])));
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: App non ufficiale per Argo ScuolaNext.
# 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.0+6
version: 1.0.0+7

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

0 comments on commit 71a1be6

Please sign in to comment.