Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the padding around the custom built picker #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/country_list_pick.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ class _CountryListPickState extends State<CountryListPick> {

@override
Widget build(BuildContext context) {
return TextButton(
onPressed: () {
return GestureDetector(
onTap: () {
_awaitFromSelectScreen(context, widget.appBar, widget.theme);
},
child: widget.pickerBuilder != null
Expand Down
8 changes: 5 additions & 3 deletions lib/selection_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import 'package:flutter/services.dart';

import 'country_list_pick.dart';

const Color kBackgroundColor = Color(0xFFFBFBFB);

class SelectionList extends StatefulWidget {
SelectionList(this.elements, this.initialSelection,
{Key? key,
Expand Down Expand Up @@ -97,7 +99,7 @@ class _SelectionListState extends State<SelectionList> {
child: Text(widget.theme?.searchText ?? 'SEARCH'),
),
Container(
color: Colors.white,
color: kBackgroundColor,
child: TextField(
controller: _controller,
decoration: InputDecoration(
Expand All @@ -120,7 +122,7 @@ class _SelectionListState extends State<SelectionList> {
Text(widget.theme?.lastPickText ?? 'LAST PICK'),
),
Container(
color: Colors.white,
color: kBackgroundColor,
child: Material(
color: Colors.transparent,
child: ListTile(
Expand Down Expand Up @@ -181,7 +183,7 @@ class _SelectionListState extends State<SelectionList> {
Widget getListCountry(CountryCode e) {
return Container(
height: 50,
color: Colors.white,
color: kBackgroundColor,
child: Material(
color: Colors.transparent,
child: ListTile(
Expand Down