-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Update from develop
…into feature/logbuch
There was a problem hiding this 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>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
class Logbook extends StatelessWidget { | ||
const Logbook({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
ImageManager im = ImageManager(); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (snapshot.connectionState == ConnectionState.waiting) { | ||
return const Center(child: CircularProgressIndicator()); | ||
} else if (snapshot.hasError) { | ||
return Center(child: Text('Error: ${snapshot.error}')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
children: [ | ||
const Text( | ||
'Du hast noch keine Beiträge.', | ||
textAlign: TextAlign.center, |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OP#187