Skip to content

Commit

Permalink
Minor Improvements (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber authored Oct 7, 2024
1 parent c204498 commit bcbd3cc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Binary file modified android/app/src/main/res/drawable/appwidget_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ContactCardLoadingView extends StatelessWidget {
children: [
ShimmerView(
child: PlaceholderText(
text: "max.mustermann@tum.de",
text: "StudentCard".toUpperCase(),
style: Theme.of(context).textTheme.bodySmall?.copyWith(
color: Colors.grey,
fontWeight: FontWeight.w700,
Expand All @@ -36,14 +36,11 @@ class ContactCardLoadingView extends StatelessWidget {
style: Theme.of(context).textTheme.headlineSmall,
),
),
const ShimmerView(
child: PlaceholderText(text: "go43hum"),
),
const ShimmerView(
child: PlaceholderText(text: "max.mustermann@tum.de"),
),
const ShimmerView(
child: PlaceholderText(text: "max.mustermann@tum.de"),
child: PlaceholderText(text: "go42tum"),
),
],
),
Expand Down
7 changes: 4 additions & 3 deletions lib/homeComponent/view/contactCard/contact_card_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ class _ContactCardViewState extends ConsumerState<ContactCardView> {
data.email,
maxLines: 1,
),
Text(
profile.tumID ?? "go42tum",
),
if (profile.tumID != null)
Text(
profile.tumID!,
),
],
),
),
Expand Down
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ class _CampusAppState extends ConsumerState<CampusApp>
void firebaseCallback() {
if (!kDebugMode) {
final remoteConfig = FirebaseRemoteConfig.instance;
remoteConfig.fetchAndActivate();
remoteConfig.fetchAndActivate().then((value) {
if (value) {
_handleFirebaseValues(
Expand Down

0 comments on commit bcbd3cc

Please sign in to comment.