Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bfix : solved bottom overflow fixes #70 #71

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Codephile

Codephile is an application specially made for all the competitive oders out there. With features like submission feed, context reminders, user search and many more this app is a perfect companion for stalking your fellow coders and learning from them.
Codephile is an application specially made for all the competitive coders out there. With features like submission feed, contest reminders, user search, and many more, this app is a perfect companion for stalking your fellow coders and learning from them.

## Screenshots

<img src="https://user-images.githubusercontent.com/60056833/111873783-1ab52900-89b8-11eb-8951-ca6c13249c05.png" width="200" height="400" /> <img src="https://user-images.githubusercontent.com/60056833/111873786-1c7eec80-89b8-11eb-9625-d19a05b15e25.png" width="200" height="400" /> <img src="https://user-images.githubusercontent.com/60056833/111873792-1f79dd00-89b8-11eb-9030-e26c91621304.png" width="200" height="400" /> <img src="https://user-images.githubusercontent.com/60056833/111873795-2143a080-89b8-11eb-9a28-04ea3f216b5b.png" width="200" height="400" />
<img src="https://user-images.githubusercontent.com/60056833/111873771-0ffa9400-89b8-11eb-8be2-2ac328356207.png" width="200" height="400" /> <img src="https://user-images.githubusercontent.com/60056833/111873773-12f58480-89b8-11eb-8d95-7f905b6d8fa5.png" width="200" height="400" /> <img src="https://user-images.githubusercontent.com/60056833/111873778-15f07500-89b8-11eb-8b46-79abab630f0d.png" width="200" height="400" /> <img src="https://user-images.githubusercontent.com/60056833/111873781-1852cf00-89b8-11eb-807e-05bf63a82d9b.png" width="200" height="400" />

## Getting Started

Expand Down
12 changes: 7 additions & 5 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,18 @@ Future<void> main() async {
print(message.toString());
},
);
runApp(MaterialApp(home: MyApp()));
runApp(
MaterialApp(
home: MyApp(),
debugShowCheckedModeBanner: false,
),
);
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
debugShowCheckedModeBanner: false,
home: new ChooseHome(),
);
return new ChooseHome();
}
}

Expand Down
198 changes: 101 additions & 97 deletions lib/screens/search/search_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,110 +47,114 @@ class _SearchPageState extends State<SearchPage> {
return Scaffold(
resizeToAvoidBottomInset: false,
backgroundColor: Colors.white,
body: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16.0, 40.0, 16.0, 8.0),
child: Container(
decoration: BoxDecoration(
color: const Color.fromRGBO(243, 244, 247, 1),
borderRadius: BorderRadius.all(Radius.circular(2.0)),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Container(
width: MediaQuery.of(context).size.width * 0.7,
child: Padding(
padding: const EdgeInsets.fromLTRB(8.0, 4.0, 2.0, 4.0),
child: TextField(
controller: _controller,
decoration: InputDecoration.collapsed(
hintText: inputHint,
hintStyle: TextStyle(
fontSize: 17.0,
color: secondaryTextGrey,
)),
onSubmitted: (text) {
text = text.trim();
if (text != "") {
_handleSearch(text);
}
},
style: TextStyle(
color: const Color.fromRGBO(
36, 36, 36, 1), //TODO: use color resources
body: SafeArea(
child: Column(
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 8.0),
child: Container(
decoration: BoxDecoration(
color: const Color.fromRGBO(243, 244, 247, 1),
borderRadius: BorderRadius.all(Radius.circular(2.0)),
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Container(
width: MediaQuery.of(context).size.width * 0.7,
child: Padding(
padding:
const EdgeInsets.fromLTRB(8.0, 4.0, 2.0, 4.0),
child: TextField(
controller: _controller,
decoration: InputDecoration.collapsed(
hintText: inputHint,
hintStyle: TextStyle(
fontSize: 17.0,
color: secondaryTextGrey,
)),
onSubmitted: (text) {
text = text.trim();
if (text != "") {
_handleSearch(text);
}
},
style: TextStyle(
color: const Color.fromRGBO(
36, 36, 36, 1), //TODO: use color resources
),
),
),
),
),
IconButton(
//TODO: use search icon from designs
padding: EdgeInsets.fromLTRB(8.0, 1.0, 2.0, 4.0),
icon: Icon(
Icons.search,
size: 30.0,
color: const Color.fromRGBO(141, 141, 141, 1),
IconButton(
//TODO: use search icon from designs
padding: EdgeInsets.fromLTRB(8.0, 1.0, 2.0, 4.0),
icon: Icon(
Icons.search,
size: 30.0,
color: const Color.fromRGBO(141, 141, 141, 1),
),
onPressed: () {
if (_controller.text.trim() != "") {
_handleSearch(_controller.text.trim());
}
},
),
onPressed: () {
if (_controller.text.trim() != "") {
_handleSearch(_controller.text.trim());
}
},
),
],
],
),
),
),
),
Expanded(
child: _isSearching == true
? Center(
child: CircularProgressIndicator(),
)
: isResultNull
? Center(
child: Text(
"No matching users found",
style: TextStyle(
fontSize: 16.0,
color: const Color.fromRGBO(36, 36, 36, 1),
),
),
)
: ((showRecentSearches) &&
(_recentlySearchedUsers != null) &&
(_recentlySearchedUsers.length != 0))
? recentSearches()
: ListView.builder(
shrinkWrap: true,
padding: EdgeInsets.fromLTRB(0.0, 8.0, 0.0, 8.0),
itemCount: searchResult.length,
itemBuilder: (BuildContext context, int index) {
CodephileUser user = searchResult[index];
return GestureDetector(
child: SearchResultCard(
token,
user.fullname,
user.username,
user.picture,
),
onTap: () {
addToRecentSearches(user);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => new Profile(
token,
user.id,
(widget.uId == user.id),
true)));
},
);
},
Expanded(
child: _isSearching == true
? Center(
child: CircularProgressIndicator(),
)
: isResultNull
? Center(
child: Text(
"No matching users found",
style: TextStyle(
fontSize: 16.0,
color: const Color.fromRGBO(36, 36, 36, 1),
),
),
)
],
)
: ((showRecentSearches) &&
(_recentlySearchedUsers != null) &&
(_recentlySearchedUsers.length != 0))
? recentSearches()
: ListView.builder(
shrinkWrap: true,
padding:
EdgeInsets.fromLTRB(0.0, 8.0, 0.0, 8.0),
itemCount: searchResult.length,
itemBuilder: (BuildContext context, int index) {
CodephileUser user = searchResult[index];
return GestureDetector(
child: SearchResultCard(
token,
user.fullname,
user.username,
user.picture,
),
onTap: () {
addToRecentSearches(user);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => new Profile(
token,
user.id,
(widget.uId == user.id),
true)));
},
);
},
),
)
],
),
));
}

Expand Down
76 changes: 39 additions & 37 deletions lib/screens/signup/signup4.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,44 +82,46 @@ class _SignUpPageState extends State<SignUpPage4> {
key: _scaffoldKey,
body: Form(
key: _formKey,
child: new Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
((isCreateAccountButtonTapped) || (isCreateAccountSuccessful))
? Expanded(
child: Center(
child: CircularProgressIndicator(),
child: SingleChildScrollView(
child: new Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
((isCreateAccountButtonTapped) || (isCreateAccountSuccessful))
? Expanded(
child: Center(
child: CircularProgressIndicator(),
),
)
: Column(
children: <Widget>[
ProgressTabBar(4),
Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(
height: MediaQuery.of(context).size.height /
15),
Text(
'Setup a username and password for Codephile',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold)),
SizedBox(height: 25.0),
_showUsernameInput(),
SizedBox(height: 15.0),
_showPasswordInput(),
],
),
)
],
),
)
: Column(
children: <Widget>[
ProgressTabBar(4),
Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(
height:
MediaQuery.of(context).size.height / 15),
Text(
'Setup a username and password for Codephile',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold)),
SizedBox(height: 25.0),
_showUsernameInput(),
SizedBox(height: 15.0),
_showPasswordInput(),
],
),
)
],
),
_showCreateAccountButton(),
],
_showCreateAccountButton(),
],
),
),
),
),
Expand Down