ANTIPALSU Label template editor using flutter

test_page.dart 933B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:flutter/material.dart';
  2. class TestPage extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return Scaffold(
  6. appBar: AppBar(
  7. title: Text('Hit Test'),
  8. ),
  9. body: Stack(
  10. clipBehavior: Clip.none,
  11. children: [
  12. GestureDetector(
  13. onTap: () {
  14. print('Red Container tapped');
  15. },
  16. child: Container(
  17. width: 100,
  18. height: 100,
  19. color: Colors.red,
  20. margin: EdgeInsets.all(20),
  21. ),
  22. ),
  23. GestureDetector(
  24. onTap: () {
  25. print('Blue Container tapped');
  26. },
  27. child: Container(
  28. width: 50,
  29. height: 50,
  30. color: Colors.blue,
  31. margin: EdgeInsets.fromLTRB(30, 20, 20, 20),
  32. ),
  33. ),
  34. ],
  35. ),
  36. );
  37. }
  38. }