Skip to content

Commit e70abdb

Browse files
committed
💄 Improve the camera button in the example
1 parent 03d3c24 commit e70abdb

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

example/lib/constants/picker_method.dart

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,13 @@ class PickMethod {
134134
handleResult(context, result);
135135
}
136136
},
137-
child: const Center(
138-
child: Icon(Icons.camera_enhance, size: 42.0),
137+
child: Container(
138+
padding: const EdgeInsets.all(28.0),
139+
color: Theme.of(context).dividerColor,
140+
child: const FittedBox(
141+
fit: BoxFit.fill,
142+
child: Icon(Icons.camera_enhance),
143+
),
139144
),
140145
),
141146
);
@@ -191,8 +196,13 @@ class PickMethod {
191196
);
192197
p.selectAsset(result);
193198
},
194-
child: const Center(
195-
child: Icon(Icons.camera_enhance, size: 42.0),
199+
child: Container(
200+
padding: const EdgeInsets.all(28.0),
201+
color: Theme.of(context).dividerColor,
202+
child: const FittedBox(
203+
fit: BoxFit.fill,
204+
child: Icon(Icons.camera_enhance),
205+
),
196206
),
197207
),
198208
);

0 commit comments

Comments
 (0)