Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stack(
- alignment: AlignmentDirectional.topCenter,
- clipBehavior: Clip.none,
- children: [
- Positioned(
- top: -36,
- child: GestureDetector(
- onTap: () {
- showDialog(
- context: context,
- builder: (context) {
- return Dialog(
- child: Text('data'),
- );
- },
- );
- },
- child: Container(
- height: 32,
- decoration: BoxDecoration(
- color: Color(0xFF04D000),
- borderRadius:
- BorderRadius.circular(6),
- ),
- alignment: Alignment.center,
- child: Text(
- 'Button 1',
- style: GoogleFonts.montserrat(
- fontSize: 12,
- fontWeight: FontWeight.bold,
- color: Colors.white,
- ),
- ),
- ),
- ),
- ),
- GestureDetector(
- onTap: () {},
- child: Container(
- height: 32,
- decoration: BoxDecoration(
- color: Color(0xFF04D000),
- borderRadius:
- BorderRadius.circular(6),
- ),
- alignment: Alignment.center,
- child: Text(
- 'Button 2',
- style: GoogleFonts.montserrat(
- fontSize: 12,
- fontWeight: FontWeight.bold,
- color: Colors.white,
- ),
- ),
- ),
- ),
- ],
- ),
Advertisement
Add Comment
Please, Sign In to add comment