Skip to content

Commit 40f2158

Browse files
committed
0.0.1
1 parent 12edfdd commit 40f2158

File tree

8 files changed

+603
-64
lines changed

8 files changed

+603
-64
lines changed

example/lib/screens/card.dart

+37-28
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,50 @@ class DemoCard extends StatelessWidget {
88
Widget build(BuildContext context) {
99
return const Center(
1010
child: RapidContainer(
11-
styles: "px-4 py-4 mx-8 my-8 bg-grey-900 rounded-md shadow-sm",
11+
styles:
12+
"px-4 py-4 mx-8 my-8 bg-grey-900 rounded-lg shadow-sm laptop:px-0 laptop:py-0",
1213
child: RapidFlow(
1314
styles: "column items-center axis-min laptop:row desktop:row",
1415
children: [
15-
CircleAvatar(
16-
backgroundColor: Colors.grey,
16+
RapidContainer(
17+
styles:
18+
"w-16 h-16 laptop:w-32 laptop:h-40 rounded-full desktop:rect bg-grey-800 laptop:rounded-md",
19+
child: SizedBox(),
1720
),
1821
SizedBox(
1922
height: 16,
2023
),
21-
RapidFlow(
22-
styles:
23-
"column items-center axis-min laptop:items-start desktop:items-start",
24-
children: [
25-
RapidText(
26-
text:
27-
"Rapid allows flutter developers to create responsive sharable widgets in record time",
28-
styles: "text-center text-white",
29-
),
30-
SizedBox(
31-
height: 12,
32-
),
33-
RapidText(
34-
text: "Adib Mohsin",
35-
styles: "text-blue",
36-
),
37-
SizedBox(
38-
height: 8,
39-
),
40-
RapidText(
41-
text: "Layopay",
42-
styles: "text-grey-500",
43-
),
44-
],
45-
)
24+
RapidContainer(
25+
styles: "laptop:px-8",
26+
child: RapidFlow(
27+
styles:
28+
"column items-center axis-min laptop:items-start desktop:items-start",
29+
children: [
30+
RapidContainer(
31+
styles: "laptop:w-96",
32+
child: RapidText(
33+
text:
34+
"Rapid allows flutter developers to create responsive sharable widgets in record time with utility first tailwind like classes",
35+
styles:
36+
"text-center text-white text-md laptop:text-left laptop:leading-relaxed",
37+
),
38+
),
39+
RapidContainer(
40+
styles: "pt-4",
41+
child: RapidText(
42+
text: "Adib Mohsin",
43+
styles: "text-blue",
44+
),
45+
),
46+
RapidContainer(
47+
styles: "pt-1",
48+
child: RapidText(
49+
text: "layopay",
50+
styles: "text-grey-500 uppercase text-xs",
51+
),
52+
)
53+
],
54+
)),
4655
],
4756
),
4857
),

lib/helper/rapid_prefix_helper.dart

+1-4
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ class RapidPrefixHelper {
3939
final Size deviceSize = MediaQuery.of(context).size;
4040
if (deviceSize.width < 600 && prefixType == RapidPrefixType.mobile) {
4141
applier();
42-
} else if (deviceSize.width > 600 &&
43-
deviceSize.width < 1280 &&
44-
prefixType == RapidPrefixType.tab) {
42+
} else if (deviceSize.width > 600 && prefixType == RapidPrefixType.tab) {
4543
applier();
4644
} else if (deviceSize.width > 1200 &&
47-
deviceSize.width < 1400 &&
4845
prefixType == RapidPrefixType.laptop) {
4946
applier();
5047
} else if (deviceSize.width > 1400 &&

0 commit comments

Comments
 (0)