Skip to content

Commit

Permalink
fix(profile-page): add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
camillelnne committed Mar 30, 2024
1 parent e1e70cb commit eb0c1aa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/views/pages/profile/posts_info/info_card.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "package:flutter/material.dart";

/// This widget defines the style of the cards in the profile page,
/// such as badges, posts and comments
class InfoCard extends StatelessWidget {
const InfoCard({
super.key,
Expand Down
2 changes: 2 additions & 0 deletions lib/views/pages/profile/posts_info/info_column.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "package:flutter/material.dart";

/// This widget defines the style of the columns in the profile page,
/// such as the posts and comments columns
class InfoColumn extends StatelessWidget {
const InfoColumn({
super.key,
Expand Down
2 changes: 2 additions & 0 deletions lib/views/pages/profile/posts_info/info_row.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "package:flutter/material.dart";

/// This widget defines the style of the rows in the profile page,
/// such as the badges row
class InfoRow extends StatelessWidget {
const InfoRow({
super.key,
Expand Down
2 changes: 2 additions & 0 deletions lib/views/pages/profile/profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import "package:proxima/views/pages/profile/posts_info/info_row.dart";
import "package:proxima/views/pages/profile/user_info/centauri_points.dart";
import "package:proxima/views/pages/profile/user_info/user_account.dart";

/// This widget is used to display the profile page
/// It contains the user info, centauri points, badges, posts and comments
class ProfilePage extends HookConsumerWidget {
const ProfilePage({super.key});

Expand Down
1 change: 1 addition & 0 deletions lib/views/pages/profile/user_info/centauri_points.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "package:flutter/material.dart";

/// This widget is used to display the centauri points in the profile page
class CentauriPoints extends StatelessWidget {
const CentauriPoints({
super.key,
Expand Down
1 change: 1 addition & 0 deletions lib/views/pages/profile/user_info/user_account.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "package:flutter/material.dart";

/// This widget display the user info in the profile page
class UserAccount extends StatelessWidget {
const UserAccount({
super.key,
Expand Down

0 comments on commit eb0c1aa

Please sign in to comment.