This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
void main() { | |
debugInvertOversizedImages = true; | |
runApp(const MaterialApp(home: RftReaderScreen())); | |
} | |
class RftReaderScreen extends StatefulWidget { | |
const RftReaderScreen({Key? key}) : super(key: key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/material.dart'; | |
extension ImageExtension on num { | |
int cacheSize(BuildContext context) { | |
return (this * MediaQuery.of(context).devicePixelRatio).round(); | |
} | |
} | |
void main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
void main() async { | |
print("Fetching todo data from JSONPlaceholder API using Future.wait method..."); | |
// Create a list of asynchronous tasks to fetch todo data from different users | |
List<Future<Map<String, dynamic>>> apiCalls = [ | |
fetchTodoData(1), |