Skip to content

Commit 7889022

Browse files
committed
[#72] add clost button as svg
1 parent ff10eff commit 7889022

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed
-1.12 KB
Binary file not shown.
-1.7 KB
Binary file not shown.

assets/images/close_button.png

-636 Bytes
Binary file not shown.

assets/svg/close_button.svg

Lines changed: 14 additions & 0 deletions
Loading

lib/screens/survey/survey_screen.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:flutter_svg/flutter_svg.dart';
23
import 'package:go_router/go_router.dart';
34
import 'package:survey_flutter/gen/assets.gen.dart';
45
import 'package:survey_flutter/screens/survey/survey_question_widget.dart';
@@ -68,9 +69,9 @@ class SurveyScreen extends StatelessWidget {
6869
shape: BoxShape.circle,
6970
color: Colors.transparent,
7071
),
71-
child: Image.asset(
72-
Assets.images.closeButton.path,
73-
color: Colors.white,
72+
child: SvgPicture.asset(
73+
Assets.svg.closeButton.path,
74+
width: _closeButtonSize,
7475
),
7576
),
7677
),

0 commit comments

Comments
 (0)