prosapp_web_app has chat, dashboard, calendar, support, 13 providers and Fluro URL routing. Keep Dockerfile + nginx.conf from previous prosappweb. Upgrade google_fonts 6.2.1 → 8.1.0 (Dart 3.12 compat fix). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
437 B
Dart
18 lines
437 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:http/http.dart' as http;
|
|
|
|
class NetworkUtility {
|
|
static Future<String?> fetchUrl(Uri uri,
|
|
{Map<String, String>? headers}) async {
|
|
try {
|
|
final response = await http.get(uri, headers: headers);
|
|
if (response.statusCode == 200) {
|
|
return response.body;
|
|
}
|
|
} catch (e) {
|
|
debugPrint('error - ${e.toString()}');
|
|
}
|
|
return null;
|
|
}
|
|
}
|