Skip to content

Commit 221a51b

Browse files
author
srinivas
committed
added bubble type in gfIntroScreen
1 parent 63f2f68 commit 221a51b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/components/intro_screen/custom_clipper.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ class MyCustomClipper extends CustomClipper<Rect> {
1212
: alignment == Alignment.topCenter
1313
? Rect.fromLTRB(0, -size.height, size.width, size.height)
1414
: alignment == Alignment.topRight
15-
? Rect.fromLTRB(-size.height, 1, size.width, size.height)
15+
? Rect.fromLTRB(0, -size.height, size.height, size.height)
1616
: alignment == Alignment.bottomLeft
1717
? Rect.fromLTRB(
1818
-size.width, -size.height, size.width, size.height)
1919
: alignment == Alignment.bottomCenter
20-
? Rect.fromLTRB(0, 0, size.width, size.height)
20+
? Rect.fromLTRB(
21+
0, -size.height, size.width, size.height)
2122
: alignment == Alignment.bottomRight
2223
? Rect.fromLTRB(
23-
0, -size.height, size.width, size.height)
24+
0, -size.width, size.height, size.height)
2425
: Rect.fromLTRB(
2526
0, -size.height, size.width, size.height);
2627
return rect;

lib/components/intro_screen/gf_intro_bubble_slide.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class GFIntroBubbleSlide extends StatelessWidget {
2727
clipper: MyCustomClipper(alignment: alignment),
2828
child: Container(
2929
width: MediaQuery.of(context).size.width / 2,
30-
height: MediaQuery.of(context).size.height / 3,
31-
padding: const EdgeInsets.only(right: 24, top: 24, bottom: 64),
30+
height: MediaQuery.of(context).size.height / 2,
31+
padding: const EdgeInsets.only(left:16,right: 16, top: 24, bottom: 24),
3232
color: color.withOpacity(0.5),
3333
child: child ??
3434
RawMaterialButton(

0 commit comments

Comments
 (0)