Skip to content

Commit

Permalink
Merge pull request #510 from verdigado/457-start-screen
Browse files Browse the repository at this point in the history
457: Adjust start screen
  • Loading branch information
steffenkleinle authored Jan 8, 2025
2 parents 25ee6c1 + cab14c1 commit 1bd9c72
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 48 deletions.
Binary file added assets/graphics/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 0 additions & 31 deletions assets/graphics/login.svg

This file was deleted.

27 changes: 12 additions & 15 deletions lib/features/login/widgets/support_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,18 @@ class SupportButton extends StatelessWidget {
return Positioned(
right: 24,
top: 32,
width: 48,
child: RotatedBox(
quarterTurns: 3,
child: FilledButton.icon(
onPressed: () => openUrl(supportUrl, context),
icon: CustomIcon(
path: 'assets/icons/heart.svg',
color: theme.colorScheme.surface,
width: 16,
height: 16,
),
label: Text(
t.login.support,
style: theme.textTheme.titleMedium?.apply(color: theme.colorScheme.surface),
),
height: 48,
child: FilledButton.icon(
onPressed: () => openUrl(supportUrl, context),
icon: CustomIcon(
path: 'assets/icons/heart.svg',
color: theme.colorScheme.surface,
width: 16,
height: 16,
),
label: Text(
t.login.support,
style: theme.textTheme.titleMedium?.apply(color: theme.colorScheme.surface),
),
),
);
Expand Down
4 changes: 2 additions & 2 deletions lib/features/login/widgets/welcome_view.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/svg.dart';
import 'package:go_router/go_router.dart';
import 'package:gruene_app/app/auth/bloc/auth_bloc.dart';
import 'package:gruene_app/app/constants/routes.dart';
Expand All @@ -21,7 +20,7 @@ class WelcomeView extends StatelessWidget {
Spacer(),
SizedBox(
height: 256,
child: SvgPicture.asset('assets/graphics/login.svg'),
child: Image.asset('assets/graphics/login.png'),
),
Center(
child: Text(t.login.welcome, style: theme.textTheme.displayLarge?.apply(color: ThemeColors.text)),
Expand Down Expand Up @@ -64,6 +63,7 @@ class WelcomeView extends StatelessWidget {
),
),
),
const SizedBox(height: 32),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down

0 comments on commit 1bd9c72

Please sign in to comment.