augment.dart 705 B

123456789101112131415161718192021222324252627282930
  1. import 'package:flutter/material.dart';
  2. import 'package:http/http.dart' as http;
  3. import 'dart:convert';
  4. import 'dart:ui_web' as ui;
  5. import 'dart:html' as html;
  6. import 'dart:js' as js;
  7. class EmailToolbar extends StatelessWidget {
  8. final VoidCallback onButtonPressed;
  9. const EmailToolbar({Key? key, required this.onButtonPressed}) : super(key: key);
  10. @override
  11. Widget build(BuildContext context) {
  12. return Row(
  13. children: [
  14. ElevatedButton(
  15. onPressed: onButtonPressed,
  16. child: Text('Home'),
  17. ),
  18. SizedBox(width: 8),
  19. ElevatedButton(
  20. onPressed: onButtonPressed,
  21. child: Text('Reload'),
  22. ),
  23. ],
  24. );
  25. }
  26. }