Skip to content

Commit 3bf07bc

Browse files
authored
Cov test (pmatatias#54)
* input qty * update build btn * dage * update cov
1 parent a8cf42e commit 3bf07bc

File tree

11 files changed

+459
-131
lines changed

11 files changed

+459
-131
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ migrate_working_dir/
2828
.dart_tool/
2929
.packages
3030
build/
31+
coverage/

example/.metadata

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "e1e47221e86272429674bec4f1bd36acc4fc7b77"
7+
revision: "d211f42860350d914a5ad8102f9ec32764dc6d06"
88
channel: "stable"
99

1010
project_type: app
@@ -13,26 +13,11 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
17-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
18-
- platform: android
19-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
20-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
16+
create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06
17+
base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06
2118
- platform: ios
22-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
23-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
24-
- platform: linux
25-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
26-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
27-
- platform: macos
28-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
29-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
30-
- platform: web
31-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
32-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
33-
- platform: windows
34-
create_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
35-
base_revision: e1e47221e86272429674bec4f1bd36acc4fc7b77
19+
create_revision: d211f42860350d914a5ad8102f9ec32764dc6d06
20+
base_revision: d211f42860350d914a5ad8102f9ec32764dc6d06
3621

3722
# User provided section
3823

example/lib/cart/commponent/mobile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MobileComponent extends StatelessWidget {
5252
Text(
5353
"Category",
5454
style: TextStyle(color: Colors.black38),
55-
textScaler: TextScaler.linear(0.88),
55+
// textScaler: TextScaler.linear(0.88),
5656
),
5757
SizedBox(height: 2),
5858
Text("Price")

example/lib/main.dart

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class _MyHomePageState extends State<MyHomePage> {
3636
Widget build(BuildContext context) {
3737
return Scaffold(
3838
// appBar: AppBar(title: Text(widget.title)),
39-
body: Padding(
40-
padding: const EdgeInsets.all(18.0),
41-
child: SingleChildScrollView(
42-
child: Form(
43-
key: _formKey,
39+
body: SingleChildScrollView(
40+
child: Form(
41+
key: _formKey,
42+
child: Padding(
43+
padding: const EdgeInsets.all(20.0),
4444
child: Column(
4545
mainAxisAlignment: MainAxisAlignment.center,
4646
crossAxisAlignment: CrossAxisAlignment.center,
@@ -104,7 +104,7 @@ class _MyHomePageState extends State<MyHomePage> {
104104
const Divider(height: 50),
105105
Row(
106106
crossAxisAlignment: CrossAxisAlignment.start,
107-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
107+
mainAxisAlignment: MainAxisAlignment.spaceAround,
108108
children: [
109109
Column(
110110
children: [
@@ -134,10 +134,11 @@ class _MyHomePageState extends State<MyHomePage> {
134134
Column(
135135
children: [
136136
const Padding(
137-
padding: EdgeInsets.all(8.0),
138-
child: Text(
139-
'Message builder',
140-
)),
137+
padding: EdgeInsets.only(bottom: 8.0),
138+
child: Text(
139+
'Message builder',
140+
),
141+
),
141142
InputQty(
142143
initVal: 0,
143144
minVal: -100,
@@ -170,7 +171,7 @@ class _MyHomePageState extends State<MyHomePage> {
170171
const Divider(height: 50),
171172
const Row(
172173
crossAxisAlignment: CrossAxisAlignment.start,
173-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
174+
mainAxisAlignment: MainAxisAlignment.spaceAround,
174175
children: [
175176
Column(
176177
children: [
@@ -187,15 +188,19 @@ class _MyHomePageState extends State<MyHomePage> {
187188
Center(
188189
child: Text(
189190
"OR",
190-
style: TextStyle(fontSize: 20, color: Colors.black),
191+
style: TextStyle(
192+
fontSize: 20,
193+
color: Colors.black,
194+
),
191195
)),
192196
Column(
193197
children: [
194198
Padding(
195-
padding: EdgeInsets.all(8.0),
196-
child: Text(
197-
'double',
198-
)),
199+
padding: EdgeInsets.all(8.0),
200+
child: Text(
201+
'double',
202+
),
203+
),
199204
InputQty(
200205
// decimalPlaces: 4,
201206
initVal: 0.0,
@@ -251,7 +256,7 @@ class _MyHomePageState extends State<MyHomePage> {
251256
const SizedBox(height: 12),
252257

253258
Row(
254-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
259+
mainAxisAlignment: MainAxisAlignment.spaceAround,
255260
children: [
256261
InputQty.int(
257262
messageBuilder: (minVal, maxVal, value) => const Text(
@@ -280,7 +285,10 @@ class _MyHomePageState extends State<MyHomePage> {
280285
],
281286
),
282287
const SizedBox(height: 30),
283-
288+
const InputQty(
289+
decoration: QtyDecorationProps(
290+
orientation: ButtonOrientation.vertical),
291+
),
284292
InputQty.int(
285293
messageBuilder: (minVal, maxVal, value) =>
286294
const Text("Classic", textAlign: TextAlign.center),
@@ -293,7 +301,7 @@ class _MyHomePageState extends State<MyHomePage> {
293301
),
294302
const SizedBox(height: 30),
295303
Row(
296-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
304+
mainAxisAlignment: MainAxisAlignment.spaceAround,
297305
children: [
298306
InputQty.int(
299307
messageBuilder: (minVal, maxVal, value) => const Text(

0 commit comments

Comments
 (0)