Skip to content

Commit

Permalink
refactor: make about page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
reyyuuki committed Dec 1, 2024
1 parent 518849b commit 75e20fe
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions lib/Screens/Bottom_Menu/_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,20 @@ class _ProfileState extends State<Profile> {
// {'title': 'Volumes Read', 'value': 0},
// {'title': 'Manga Mean Score', 'value': 0.0},
];
final animeData = provider.userData['animeList']?.where((anime) => anime['status'] == "CURRENT")
.toList();
final animeData = provider.userData['animeList']
?.where((anime) => anime['status'] == "CURRENT")
.toList();

final mangaData = provider.userData['mangaList']?.where((manga) => manga['status'] == "CURRENT")
.toList();
final mangaData = provider.userData['mangaList']
?.where((manga) => manga['status'] == "CURRENT")
.toList();

String name = provider.userData['name'] ?? "Guest";
String image = provider.userData['avatar']['large'] ?? "";
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: ListView(
physics: const BouncingScrollPhysics(),
children: [
Stack(
alignment: Alignment.center,
Expand All @@ -90,6 +93,7 @@ class _ProfileState extends State<Profile> {
),
),
),

Positioned(
bottom: -20,
width: MediaQuery.of(context).size.width,
Expand All @@ -108,6 +112,7 @@ class _ProfileState extends State<Profile> {
),
),
),

Center(
child: Column(
children: [
Expand Down Expand Up @@ -141,7 +146,18 @@ class _ProfileState extends State<Profile> {
),
],
),
)
),
Positioned(
top: 10,
left: 0,
child: IconButton(
alignment: Alignment.topLeft,
iconSize: 40,
onPressed: () {
Navigator.pop(context);
},
icon: const Icon(Icons.arrow_back_ios)),
),
],
),
const SizedBox(height: 10),
Expand Down

0 comments on commit 75e20fe

Please sign in to comment.