Skip to content

Commit

Permalink
Fix: Grey Screen (#12)
Browse files Browse the repository at this point in the history
* create models for Artikel and create get-post method

* refactor method get and post

* create myartikel.dart for artikel page

* create artikel_by_id.dart

* create floating action button for tambah artikel

* create form_tambah_artikel.dart for form tambah artikel page

* delete keyboard type in form tambah artikel

* Implement auth: done (#3)

* Init authentication page

* Add bottom navbar

* Implement login and signup UI

* Authentication: done

* edit _bacabund.dart

* add conditional for floating action button in myartikel.dart

* changed widget name into MyArtikel

* add BacaBundPage to routes_factory.dart, but still got an error

* form + list diary

* fixed bug string got null

* fixed bug in models and method get artikel

* change button color into red

* fixed overflow in login page

* fixed overflow in signup page

* date & fetch belom :(

* use the postArtikel method in form page

* styling only without features & fetch

* change the login and signup url & changed models attribute variable names

* trash #1

* create new post method using request.post, but still got an error

* build method get & post but didnt work

* fixed bugs in post artikel

* fixed bugs in button simpan form artikel

* delete unnecessary comments

* add configuration for deployment

* use circular progress indicator while fetching artikel

* add state while fetching data

* fetch data to django without filter

* last revision, failed to fetch with login required

* roles handled, still clueless abt filter-delete-post

* Periksabund ui

* Create Home, Onboarding, and TanyaBund Page (#4)

* Feat: TanyaBund Post Question and Answer (#5)

* Create Home, Onboarding, and TanyaBund Page

* Feat: Implement Functionality to Add Question and Answer

* implement get & post, but not applicable in railway

* add delete method, but still get authentication problem

* new branch

* Temporary commit

* get post

* Commit

* Add Functionality to Delete Question and Answer (#6)

* Create Home, Onboarding, and TanyaBund Page

* Feat: Implement Functionality to Add Question and Answer

* Add Functionality to Delete Question and Answer

* Fix: Conflict

* Finishing TanyaBund

* PeriksaBund Get, Post #1

* solve merge

* Pubspec commit

* change appbar color

* merge development

* delete codes for debugging

* Commit pubspec

* Change Api to Railway

* get, post, delete done :')

* add if else for faskes

* railway

* scrollview

* PeriksaBund Delete Feature #1

* scrollview

* Implementing Logout

* Commit

* PeriksaBund Final

* Add Role Greetings

* Finishing

* solve listdiary flex

* Fix: Greyscreen

* solve error widget

Co-authored-by: iqbalpa <[email protected]>
Co-authored-by: Mayfa Shadrina Siddi <[email protected]>
Co-authored-by: shafanjw <[email protected]>
Co-authored-by: dionavarastika <[email protected]>
Co-authored-by: Mayfa Shadrina Siddi <[email protected]>
  • Loading branch information
6 people authored Dec 12, 2022
1 parent 6dcad84 commit d4cab85
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 30 deletions.
36 changes: 24 additions & 12 deletions lib/views/pages/diarybund/diary_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,34 @@ class DiaryDetails extends StatelessWidget {
const SizedBox(
height: 16,
),
Flexible(
child: Text(
diary.fields.fieldsAbstract,
style: const TextStyle(
fontSize: 16, fontStyle: FontStyle.italic, color: AppColors.merahMuda),
),
Flex(
direction: Axis.horizontal,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Flexible(
child: Text(
diary.fields.fieldsAbstract,
style: const TextStyle(
fontSize: 16, fontStyle: FontStyle.italic, color: AppColors.merahMuda),
),
)
],
),
const SizedBox(
height: 16,
),
Flexible(
child: Text(
diary.fields.description,
style: const TextStyle(
fontSize: 16, fontWeight: FontWeight.normal),
),
Flex(
direction: Axis.horizontal,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Flexible(
child: Text(
diary.fields.description,
style: const TextStyle(
fontSize: 16, fontWeight: FontWeight.normal),
),
)
],
),
const Spacer(),
ElevatedButton(
Expand Down
6 changes: 4 additions & 2 deletions lib/views/pages/diarybund/listdiary_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class _DiaryBundPageState extends State<DiaryBundPage> {
),
Padding(
padding: const EdgeInsets.fromLTRB(16.0, 8.0, 16.0, 8.0),
child: Row(
child: Flex(
direction: Axis.horizontal,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Flexible(child: Text(
Expand Down Expand Up @@ -203,7 +204,8 @@ class _DiaryBundPageState extends State<DiaryBundPage> {
),
Padding(
padding: const EdgeInsets.fromLTRB(16.0, 8.0, 16.0, 8.0),
child: Row(
child: Flex(
direction: Axis.horizontal,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Flexible(child: Text(
Expand Down
10 changes: 4 additions & 6 deletions lib/views/pages/homepage/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,10 @@ class HomePage extends StatelessWidget {
const Center(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 20),
child: Flexible(
child: Text(
'HalowBund merupakan sebuah aplikasi dan website yang membantu ribuan Ibu di seluruh Indonesia mengenai pengetahuan motherhood dan juga mengedukasi kesehatan Ibu & Anak',
textAlign: TextAlign.center,
style: TextStyle(height: 1.4),
),
child: Text(
'HalowBund merupakan sebuah aplikasi dan website yang membantu ribuan Ibu di seluruh Indonesia mengenai pengetahuan motherhood dan juga mengedukasi kesehatan Ibu & Anak',
textAlign: TextAlign.center,
style: TextStyle(height: 1.4),
),
),
)
Expand Down
6 changes: 2 additions & 4 deletions lib/views/widgets/tanyabund/answer_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ class AnswerCard extends StatelessWidget {
),
Padding(
padding: const EdgeInsets.all(4.0),
child: Flexible(
child: Text(
text,
),
child: Text(
text,
),
),
const SizedBox(
Expand Down
10 changes: 4 additions & 6 deletions lib/views/widgets/tanyabund/question_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ class QuestionCard extends StatelessWidget {
),
Padding(
padding: const EdgeInsets.all(4.0),
child: Flexible(
child: Text(
text,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
child: Text(
text,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
const SizedBox(
Expand Down

0 comments on commit d4cab85

Please sign in to comment.