augment.dart 681 B

1234567891011121314151617181920212223242526272829
  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. class EmailToolbar extends StatelessWidget {
  7. final VoidCallback onButtonPressed;
  8. const EmailToolbar({Key? key, required this.onButtonPressed}) : super(key: key);
  9. @override
  10. Widget build(BuildContext context) {
  11. return Row(
  12. children: [
  13. ElevatedButton(
  14. onPressed: onButtonPressed,
  15. child: Text('Home'),
  16. ),
  17. SizedBox(width: 8),
  18. ElevatedButton(
  19. onPressed: onButtonPressed,
  20. child: Text('Reload'),
  21. ),
  22. ],
  23. );
  24. }
  25. }