dark_ess3nce

Untitled

Sep 17th, 2023
1,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.21 KB | Source Code | 0 0
  1.                                 Stack(
  2.                                   alignment: AlignmentDirectional.topCenter,
  3.                                   clipBehavior: Clip.none,
  4.                                   children: [
  5.                                     Positioned(
  6.                                       top: -36,
  7.                                       child: GestureDetector(
  8.                                         onTap: () {
  9.                                           showDialog(
  10.                                             context: context,
  11.                                             builder: (context) {
  12.                                               return Dialog(
  13.                                                 child: Text('data'),
  14.                                               );
  15.                                             },
  16.                                           );
  17.                                         },
  18.                                         child: Container(
  19.                                           height: 32,
  20.                                           decoration: BoxDecoration(
  21.                                             color: Color(0xFF04D000),
  22.                                             borderRadius:
  23.                                                 BorderRadius.circular(6),
  24.                                           ),
  25.                                           alignment: Alignment.center,
  26.                                           child: Text(
  27.                                             'Button 1',
  28.                                             style: GoogleFonts.montserrat(
  29.                                               fontSize: 12,
  30.                                               fontWeight: FontWeight.bold,
  31.                                               color: Colors.white,
  32.                                             ),
  33.                                           ),
  34.                                         ),
  35.                                       ),
  36.                                     ),
  37.                                     GestureDetector(
  38.                                       onTap: () {},
  39.                                       child: Container(
  40.                                         height: 32,
  41.                                         decoration: BoxDecoration(
  42.                                           color: Color(0xFF04D000),
  43.                                           borderRadius:
  44.                                               BorderRadius.circular(6),
  45.                                         ),
  46.                                         alignment: Alignment.center,
  47.                                         child: Text(
  48.                                           'Button 2',
  49.                                           style: GoogleFonts.montserrat(
  50.                                             fontSize: 12,
  51.                                             fontWeight: FontWeight.bold,
  52.                                             color: Colors.white,
  53.                                           ),
  54.                                         ),
  55.                                       ),
  56.                                     ),
  57.                                   ],
  58.                                 ),
Advertisement
Add Comment
Please, Sign In to add comment