Updated The Dart SDK to 3.4.1 and Flutter SDK to 3.22.1

This commit is contained in:
Nilashish Roy
2024-05-27 22:41:18 +06:00
parent b77740619a
commit 4b87e67125
10 changed files with 69 additions and 74 deletions

View File

@@ -2,10 +2,11 @@ import 'package:country_code_picker/country_code_picker.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
void main() => runApp(const MyApp());
void main() => runApp( const MyApp());
class MyApp extends StatefulWidget {
const MyApp({Key key}) : super(key: key);
const MyApp({super.key});
@override
MyAppState createState() => MyAppState();
@@ -107,10 +108,10 @@ class MyAppState extends State<MyApp> {
favorite: const ['+39', 'FR'],
countryFilter: const ['IT', 'FR'],
showFlagDialog: false,
comparator: (a, b) => b.name.compareTo(a.name),
comparator: (a, b) => b.name!.compareTo(a.name!),
//Get the country information relevant to the initial selection
onInit: (code) => debugPrint(
"on init ${code.name} ${code.dialCode} ${code.name}"),
"on init ${code!.name} ${code.dialCode} ${code.name}"),
),
CountryCodePicker(
onChanged: print,