Skip to content

Commit

Permalink
update layout
Browse files Browse the repository at this point in the history
TO-DO:
+ unit test e widget test;
+ CI/CD;
+ sistemare stile iconButton (in hover non cambia il colore);
+ migliorare il controllo delle domande e delle nuove versioni (c'è la possibilità che si sfori l'API rate limit di GitHub -> andrebbe gestita l'exception).
  • Loading branch information
mikyll committed Dec 4, 2023
1 parent 5bfce4f commit a2eea98
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
31 changes: 15 additions & 16 deletions app-mobile/flutter_application/lib/views/ViewInfo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ class ViewInfoState extends State<ViewInfo> with TickerProviderStateMixin {
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 20, fontWeight: FontWeight.bold)),
const Spacer(),
const Spacer(flex: 2),
Expanded(
flex: 3,
flex: 4,
child: ListView(
children: [
Row(mainAxisAlignment: MainAxisAlignment.center, children: [
Expand Down Expand Up @@ -200,23 +200,22 @@ class ViewInfoState extends State<ViewInfo> with TickerProviderStateMixin {
],
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 50.0),
child: Container(
color: Colors.indigo.withOpacity(0.35),
alignment: Alignment.center,
child: const Padding(
padding: EdgeInsets.all(20.0),
child: Text("Ti sfido a tenere premuta la stellina",
maxLines: 2,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18,
)),
),
Spacer(),
Container(
color: Colors.indigo.withOpacity(0.35),
alignment: Alignment.center,
child: const Padding(
padding: EdgeInsets.all(20.0),
child: Text("Ti sfido a tenere premuta la stellina",
maxLines: 2,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18,
)),
),
),
const SizedBox(height: 20),
Spacer()
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion app-mobile/flutter_application/lib/views/ViewSettings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ class ViewSettingsState extends State<ViewSettings> {
),
body: Center(
child: ListView(
padding: const EdgeInsets.all(25.0),
padding: const EdgeInsets.all(15.0),
controller: _scrollController,
shrinkWrap: true,
primary: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CreditsWidgetState extends State<CreditsWidget> {
children: [
Expanded(
child: Text(!alreadyPresent ? "${contribution.task}: " : "",
style: const TextStyle(fontSize: 18))),
maxLines: 2, style: const TextStyle(fontSize: 18))),
Row(
children: [
Text(!alreadyPresent ? "" : "& ",
Expand Down

0 comments on commit a2eea98

Please sign in to comment.