-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add search.svg * add Assets.search.svg * fixes review * add scan_search_button.dart --------- Co-authored-by: Marcin Stepnowski <[email protected]>
- Loading branch information
1 parent
8a36114
commit 877f258
Showing
7 changed files
with
79 additions
and
63 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,39 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:pola_flutter/theme/assets.gen.dart'; | ||
import 'package:pola_flutter/theme/text_size.dart'; | ||
import 'package:pola_flutter/i18n/strings.g.dart'; | ||
|
||
class ScanSearchButton extends StatelessWidget { | ||
const ScanSearchButton({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Center( | ||
child: Container( | ||
padding: const EdgeInsets.symmetric(horizontal: 10.0, vertical: 10.0), | ||
decoration: BoxDecoration( | ||
color: Colors.white, | ||
borderRadius: BorderRadius.circular(25), | ||
), | ||
child: Row( | ||
children: [ | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 10), | ||
child: Assets.search.svg(), | ||
), | ||
Expanded( | ||
child: Text( | ||
t.scan.search, | ||
style: TextStyle( | ||
fontSize: TextSize.mediumTitle, | ||
fontWeight: FontWeight.w400, | ||
color: Colors.black, | ||
), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.