home_page.dart 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import 'package:flutter/material.dart';
  2. /// Description: home page
  3. /// Time : 12/20/2024 Friday
  4. /// Author : liuyuqi.gov@msn.cn
  5. class HomePage extends StatefulWidget {
  6. const HomePage({super.key});
  7. @override
  8. State<HomePage> createState() => _HomePageState();
  9. }
  10. class _HomePageState extends State<HomePage> {
  11. @override
  12. Widget build(BuildContext context) {
  13. return Scaffold(
  14. appBar: AppBar(
  15. actions: [],
  16. title: const Text("主页"),
  17. ),
  18. body: Column(
  19. children: [
  20. const Text("支付演示"),
  21. const Text("商品名称: 橘子"),
  22. const Text("数量:1斤"),
  23. const Text("单价:11元/斤"),
  24. const Text("总价:11元"),
  25. Row(
  26. children: [
  27. ElevatedButton(
  28. onPressed: () {},
  29. child: const Text("微信支付"),
  30. ),
  31. ElevatedButton(
  32. onPressed: () {},
  33. child: const Text("支付宝支付"),
  34. ),
  35. ElevatedButton(
  36. onPressed: () {},
  37. child: const Text("Google支付"),
  38. ),
  39. ElevatedButton(
  40. onPressed: () {},
  41. child: const Text("Stripe支付"),
  42. ),
  43. ],
  44. ),
  45. ],
  46. ),
  47. );
  48. }
  49. }