Skip to content

Commit

Permalink
add search.svg
Browse files Browse the repository at this point in the history
  • Loading branch information
D3bi7 committed Dec 17, 2024
1 parent 4f4e7ea commit 84ab1ea
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
3 changes: 3 additions & 0 deletions assets/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 27 additions & 4 deletions lib/pages/scan/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import 'package:pola_flutter/theme/colors.dart';
import 'package:pola_flutter/theme/text_size.dart';
import 'package:pola_flutter/ui/menu_icon_button.dart';
import 'package:pola_flutter/ui/web_view_dialog.dart';
import 'package:flutter_svg/flutter_svg.dart';

class MainPage extends StatefulWidget {
@override
Expand Down Expand Up @@ -76,10 +77,32 @@ class _MainPageState extends State<MainPage> {
Center(
child: Padding(
padding: const EdgeInsets.only(top: 20.0),
child: Text(
"Umieść kod kreskowy produktu w prostokącie powyżej aby dowiedzieć się więcej o firmie, która go wyprodukowała.",
textAlign: TextAlign.center,
style: TextStyle(color: Colors.white),
child: Container(
width: 328,
height: 40,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(25),
),
child: Row(
children: [
Padding(
padding:
const EdgeInsets.only(left: 20.0, right: 10),
child: SvgPicture.asset(
'assets/search.svg',
),
),
Text(
'Wyszukaj',
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
color: Colors.black,
),
),
],
),
),
),
),
Expand Down

0 comments on commit 84ab1ea

Please sign in to comment.