feat(diets): about diets screen and profile screen from diet

This commit is contained in:
mso7nueh
2024-08-12 14:35:34 +03:00
parent 4af39985ee
commit 762c54fe28
3 changed files with 209 additions and 7 deletions

View File

@@ -0,0 +1,38 @@
import 'package:eatvio_app/features/feed/models/diets_pagination_model.dart';
import 'package:flutter/material.dart';
class ProfileScreen extends StatelessWidget {
final Author author;
const ProfileScreen({super.key, required this.author});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Expanded(
child: Center(
child: Column(
children: [
CircleAvatar(
maxRadius: 128,
minRadius: 128,
backgroundImage: NetworkImage(author.authorProfileIcon),
),
SizedBox(height: 32),
Text(
author.authorName,
style: TextStyle(
color: Colors.black,
fontSize: 24,
fontWeight: FontWeight.w400,
height: 1,
),
),
],
),
),
),
);
}
}