Skip to content

Commit

Permalink
Update Filter screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Frezyx committed Oct 1, 2022
1 parent 218dea9 commit 974d4b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 10 additions & 5 deletions packages/talker_flutter/lib/src/ui/talker_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ class _TalkerScreenState extends State<TalkerScreen> {
child: Text(widget.appBarTitle),
),
actions: [
SizedBox(
width: 40,
child: IconButton(
padding: EdgeInsets.zero,
iconSize: 28,
onPressed: () => _showFilter(context),
icon: const Icon(Icons.filter_alt_outlined),
),
),
SizedBox(
width: 40,
child: IconButton(
Expand Down Expand Up @@ -124,11 +133,6 @@ class _TalkerScreenState extends State<TalkerScreen> {
title: 'Clean history',
icon: Icons.delete_outline,
),
BottomSheetAction(
onTap: () => _showFilter(context),
title: 'Filter',
icon: Icons.filter_alt_outlined,
),
BottomSheetAction(
onTap: _shareLogsInFile,
title: 'Share logs file',
Expand Down Expand Up @@ -159,6 +163,7 @@ class _TalkerScreenState extends State<TalkerScreen> {
await showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
isScrollControlled: true,
builder: (context) {
return TalkerScreenFilter(
controller: _controller,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class TalkerScreenFilter extends StatelessWidget {
final types = unicTypes.map((e) => e).toList();
final theme = Theme.of(context);
return Container(
margin: EdgeInsets.only(top: MediaQuery.of(context).padding.top + 80),
decoration: BoxDecoration(
color: talkerScreenTheme.backgroudColor,
borderRadius: BorderRadius.circular(10),
Expand All @@ -39,7 +40,7 @@ class TalkerScreenFilter extends StatelessWidget {
),
boxShadow: const [BoxShadow(blurRadius: 5)],
),
padding: const EdgeInsets.symmetric(vertical: 15.0, horizontal: 10),
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expand Down

0 comments on commit 974d4b9

Please sign in to comment.