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

Refactor color scheme in theme.dart make it simple and protect defaults more #28

Merged
merged 15 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ app.*.map.json
/android/app/release

# Environment
.env
.env

# Vscode
.vscode/
1 change: 0 additions & 1 deletion lib/components/bottom_navigation_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class AppBottomNavigationBar extends StatelessWidget {
),
],
currentIndex: currentIndex,
selectedItemColor: Colors.amber[800],
onTap: onTap,
);
}
Expand Down
2 changes: 0 additions & 2 deletions lib/components/profile/about_me_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ class ProfileAboutMeCard extends StatelessWidget {
height: cardHeight,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down
2 changes: 0 additions & 2 deletions lib/components/profile/badges_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ class BadgesCard extends StatelessWidget {
height: 260,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down
2 changes: 0 additions & 2 deletions lib/components/profile/day_streaks_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ class ProfileDayStreaksCard extends StatelessWidget {
height: 250,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down
3 changes: 0 additions & 3 deletions lib/components/profile/mother_tongues_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ class MotherTonguesCard extends StatelessWidget {
height: 165,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down Expand Up @@ -66,7 +64,6 @@ class MotherTonguesCard extends StatelessWidget {
languages[index],
style: const TextStyle(
fontSize: 18,
color: Colors.black,
),
),
const Spacer(),
Expand Down
2 changes: 0 additions & 2 deletions lib/components/profile/others_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ class OthersCard extends StatelessWidget {
height: 230,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down
3 changes: 0 additions & 3 deletions lib/components/profile/study_languages_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ class StudyLanguagesCard extends StatelessWidget {
height: 165,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down Expand Up @@ -66,7 +64,6 @@ class StudyLanguagesCard extends StatelessWidget {
languages[index],
style: const TextStyle(
fontSize: 18,
color: Colors.black,
),
),
const Spacer(),
Expand Down
7 changes: 0 additions & 7 deletions lib/components/profile/token_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ class ProfileTokenCard extends StatelessWidget {
height: 320,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down Expand Up @@ -109,7 +107,6 @@ class ProfileTokenCard extends StatelessWidget {
'Leaderboard',
style: TextStyle(
fontSize: 18,
color: Colors.black,
),
),
const Spacer(),
Expand All @@ -122,10 +119,6 @@ class ProfileTokenCard extends StatelessWidget {
],
),
),
Container(
height: 1,
color: Colors.grey[300],
),
],
),
),
Expand Down
2 changes: 0 additions & 2 deletions lib/components/profile/user_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ class ProfileUserCard extends StatelessWidget {
height: 330,
width: MediaQuery.of(context).size.width,
child: Card(
elevation: 5.0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
Expand Down
Loading
Loading