Skip to content

Commit

Permalink
add column
Browse files Browse the repository at this point in the history
  • Loading branch information
D3bi7 committed Oct 1, 2024
1 parent 61038ca commit 12f9dab
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions lib/pages/scan/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,25 +132,30 @@ class _MainPageState extends State<MainPage> {
});
}
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expanded(child: CompaniesList(state, listScrollController)),
GestureDetector(
onTap: () {
setState(() {
_isTorchOn = !_isTorchOn;
cameraController.toggleTorch();
});
},
child: Container(
decoration: BoxDecoration(
boxShadow: [],
),
child: _isTorchOn
? Assets.scan.flashlightOn.svg()
: Assets.scan.flashlightOff.svg(),
),
),
Expanded(
child: CompaniesList(state, listScrollController)),
Column(
children: [
GestureDetector(
onTap: () {
setState(() {
_isTorchOn = !_isTorchOn;
cameraController.toggleTorch();
});
},
child: Container(
decoration: BoxDecoration(
boxShadow: [],
),
child: _isTorchOn
? Assets.scan.flashlightOn.svg()
: Assets.scan.flashlightOff.svg(),
),
)
],
)
],
);
},
Expand Down

0 comments on commit 12f9dab

Please sign in to comment.