Skip to content

Commit

Permalink
[#72] add clost button as svg
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhanh44 committed Aug 31, 2023
1 parent ff10eff commit 7889022
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
Binary file removed assets/images/2.0x/close_button.png
Binary file not shown.
Binary file removed assets/images/3.0x/close_button.png
Binary file not shown.
Binary file removed assets/images/close_button.png
Binary file not shown.
14 changes: 14 additions & 0 deletions assets/svg/close_button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions lib/screens/survey/survey_screen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:go_router/go_router.dart';
import 'package:survey_flutter/gen/assets.gen.dart';
import 'package:survey_flutter/screens/survey/survey_question_widget.dart';
Expand Down Expand Up @@ -68,9 +69,9 @@ class SurveyScreen extends StatelessWidget {
shape: BoxShape.circle,
color: Colors.transparent,
),
child: Image.asset(
Assets.images.closeButton.path,
color: Colors.white,
child: SvgPicture.asset(
Assets.svg.closeButton.path,
width: _closeButtonSize,
),
),
),
Expand Down

0 comments on commit 7889022

Please sign in to comment.