Skip to content

Commit

Permalink
[#72] Remove some code
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhanh44 committed Aug 31, 2023
1 parent 22f90b1 commit ff10eff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"loginFailAlertTitle": "Unable to log in",
"today": "Today",
"errorText": "Error",
"startSurveyButton": "Start Survey",
"startSurveyText": "Start Survey",
"submitText": "Submit"
}
2 changes: 1 addition & 1 deletion lib/screens/survey/survey_detail_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SurveyDetailScreen extends StatelessWidget {
hintTextStyle: context.textTheme.labelMedium,
),
child: Text(
context.localizations.startSurveyButton,
context.localizations.startSurveyText,
),
onPressed: () {
// TODO: Pass survey question model
Expand Down
10 changes: 6 additions & 4 deletions lib/screens/survey/survey_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class SurveyScreen extends StatelessWidget {
PageView.builder(
itemCount: _numberOfQuestions,
controller: _pageController,
itemBuilder: (BuildContext context, int index) {
itemBuilder: (_, __) {
return const SurveyQuestionWidget(
displayOrder: _displayOrder,
numberOfQuestions: _numberOfQuestions,
);
},
onPageChanged: (int index) {
onPageChanged: (_) {
// TODO: handle in integrate
},
),
Expand Down Expand Up @@ -77,8 +77,10 @@ class SurveyScreen extends StatelessWidget {
);
}

Widget _buildBottomButtons(
{required bool isNext, required BuildContext context}) {
Widget _buildBottomButtons({
required bool isNext,
required BuildContext context,
}) {
return Align(
alignment: Alignment.bottomRight,
child: Padding(
Expand Down

0 comments on commit ff10eff

Please sign in to comment.