-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create ui for survey detail (#27)
- Loading branch information
1 parent
315ed8d
commit f65a8e3
Showing
10 changed files
with
138 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
part of '../survey_detail_module.dart'; | ||
|
||
class Content extends StatelessWidget { | ||
const Content({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Screen( | ||
body: Stack( | ||
fit: StackFit.expand, | ||
children: [ | ||
Image( | ||
image: Assets.images.mainBackgroundDimmed, | ||
fit: BoxFit.fill, | ||
), | ||
SafeArea( | ||
child: Column( | ||
children: [ | ||
NavigationBar(), | ||
Expanded( | ||
child: Container( | ||
margin: const EdgeInsets.fromLTRB(20, 0, 20, 0), | ||
child: Column( | ||
children: [ | ||
const Text( | ||
"Working from home Check-In", | ||
style: TextStyle( | ||
color: Colors.white, | ||
fontSize: 34, | ||
), | ||
), | ||
const SizedBox( | ||
height: 17, | ||
), | ||
Text( | ||
"We would like to know how you feel about our work from home (WFH) experience.", | ||
style: TextStyle( | ||
color: Colors.white.withOpacity(0.7), | ||
fontSize: 17, | ||
), | ||
), | ||
Expanded(child: Container()), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.end, | ||
children: [ | ||
ConstrainedBox( | ||
constraints: const BoxConstraints( | ||
minWidth: 140, | ||
), | ||
child: Button( | ||
title: AppLocalizations.of(context)! | ||
.surveyDetailScreenStartSurveyButtonTitle, | ||
), | ||
), | ||
]), | ||
], | ||
), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
part of 'survey_detail_module.dart'; | ||
|
||
abstract class SurveyDetailInteractorDelegate {} | ||
|
||
abstract class SurveyDetailInteractor | ||
extends Interactor<SurveyDetailInteractorDelegate> {} | ||
|
||
class SurveyDetailInteractorImpl extends SurveyDetailInteractor {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:flutter/material.dart' hide Router; | ||
import 'package:flutter/widgets.dart' hide Router; | ||
import 'package:survey/components/button/button.dart'; | ||
import 'package:survey/components/navigation_bar/navigation_bar.dart'; | ||
import 'package:survey/core/viper/module.dart'; | ||
import 'package:survey/gen/assets.gen.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
import 'package:survey/modules/screen.dart'; | ||
|
||
class SurveyDetailModule extends Module { | ||
part 'survey_detail_view.dart'; | ||
|
||
part 'survey_detail_interactor.dart'; | ||
|
||
part 'survey_detail_presenter.dart'; | ||
|
||
part 'survey_detail_router.dart'; | ||
|
||
part 'components/content.dart'; | ||
|
||
class SurveyDetailModule extends Module<SurveyDetailView, | ||
SurveyDetailInteractor, SurveyDetailPresenter, SurveyDetailRouter> { | ||
static const routePath = "/survey/detail"; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return const Screen( | ||
body: Center( | ||
child: Text("Survey Detail"), | ||
), | ||
); | ||
return const SurveyDetailViewImpl(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
part of 'survey_detail_module.dart'; | ||
|
||
abstract class SurveyDetailPresenter extends Presenter<SurveyDetailView, | ||
SurveyDetailInteractor, SurveyDetailRouter> {} | ||
|
||
class SurveyDetailPresenterImpl extends SurveyDetailPresenter | ||
implements SurveyDetailViewDelegate, SurveyDetailInteractorDelegate {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
part of 'survey_detail_module.dart'; | ||
|
||
abstract class SurveyDetailRouter extends Router {} | ||
|
||
class SurveyDetailRouterImpl extends SurveyDetailRouter {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
part of 'survey_detail_module.dart'; | ||
|
||
abstract class SurveyDetailViewDelegate {} | ||
|
||
abstract class SurveyDetailView extends View<SurveyDetailViewDelegate> {} | ||
|
||
class SurveyDetailViewImpl extends StatefulWidget { | ||
const SurveyDetailViewImpl({Key? key}) : super(key: key); | ||
|
||
@override | ||
_SurveyDetailViewImplState createState() => _SurveyDetailViewImplState(); | ||
} | ||
|
||
class _SurveyDetailViewImplState extends ViewState<SurveyDetailViewImpl, | ||
SurveyDetailModule, SurveyDetailViewDelegate> implements SurveyDetailView { | ||
@override | ||
Widget build(BuildContext context) { | ||
return const Content(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters