|
import 'package:flutter/services.dart';
|
|
import 'dart:convert';
|
|
|
|
const String configJSONPath = 'assets/config.json';
|
|
|
|
Future<Map<String, dynamic>> loadLocalConfigJSON() async {
|
|
String content = await rootBundle.loadString(configJSONPath);
|
|
return jsonDecode(content);
|
|
}
|