-
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.
Work in progres 110/prostokąt (#141)
* ScanBackground * Add Row and Column * redRectangel * add red corners * changing the size of the rectangle * add shadow * add rectangle to scanbackground * fixed expanded * fixes review * add rectangle.svg * fixes review --------- Co-authored-by: Marcin Stepnowski <[email protected]>
- Loading branch information
1 parent
0ba8db9
commit 4f4e7ea
Showing
5 changed files
with
97 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:pola_flutter/theme/assets.gen.dart'; | ||
import 'package:pola_flutter/theme/colors.dart'; | ||
|
||
class ScanBackground extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
children: [ | ||
_BlackOpacity(), | ||
Row( | ||
children: [ | ||
_SizedBlackOpacity(), | ||
_RedRectangle(), | ||
_SizedBlackOpacity(), | ||
], | ||
), | ||
_BlackOpacity(), | ||
], | ||
); | ||
} | ||
} | ||
|
||
class _SizedBlackOpacity extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Expanded( | ||
child: SizedBox( | ||
height: 187, | ||
child: Container( | ||
color: AppColors.text.withOpacity(0.7), | ||
), | ||
), | ||
); | ||
} | ||
} | ||
|
||
class _BlackOpacity extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Expanded( | ||
child: Container( | ||
color: AppColors.text.withOpacity(0.7), | ||
), | ||
); | ||
} | ||
} | ||
|
||
class _RedRectangle extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Assets.menuPage.rectangle.svg(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.