Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Task/187 page logbuch home screen #36

Merged
merged 7 commits into from
Dec 15, 2023
Merged

Conversation

moverval
Copy link
Contributor

OP#187

Copy link
Contributor

@IsAvaible IsAvaible left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logik & Style sehen gut aus! Kleine Anpassungen vor allem bei Loading und Error

),
);
FutureBuilder<List<db_post.Post>>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Der Seperator zwischen den Beiträgen fehlt noch.

image


class Logbook extends StatelessWidget {
const Logbook({super.key});

@override
Widget build(BuildContext context) {
ImageManager im = ImageManager();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Abkürzung "im" ist nicht besonders aussagekräftig, weil's eh nur einmal genutzt wird, können wir die Variabel ruhig imageManager nennen

builder:
(BuildContext context, AsyncSnapshot<List<dynamic>> snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(child: CircularProgressIndicator());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading Indicator ist horizontal und nicht vertikal zentriert.

image

if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(child: CircularProgressIndicator());
} else if (snapshot.hasError) {
return Center(child: Text('Error: ${snapshot.error}'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wie beim loading indicator.

image

children: [
const Text(
'Du hast noch keine Beiträge.',
textAlign: TextAlign.center,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text ist imo bisschen klein, vielleicht
style: Theme.of(context).textTheme.displayMedium
?

],
);
} else {
return const CircularProgressIndicator();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lieber
return SizedBox(height: 200, child: Center(child: const CircularProgressIndicator()));
sonst sieht der Indicator so lustig aus:
image

@Mats4k Mats4k merged commit a96e545 into develop Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants