From dd30af8ea671a29343d5bbc83be54cfe83409184 Mon Sep 17 00:00:00 2001 From: Arsen Latipov Date: Mon, 6 Oct 2025 17:29:43 +0300 Subject: [PATCH 1/3] [wave-4] WaveInput added to app code --- .../screens/foreground_switch_screen/paste_code_screen.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/screens/foreground_switch_screen/paste_code_screen.dart b/lib/src/screens/foreground_switch_screen/paste_code_screen.dart index f9f91af..a6c5aa7 100644 --- a/lib/src/screens/foreground_switch_screen/paste_code_screen.dart +++ b/lib/src/screens/foreground_switch_screen/paste_code_screen.dart @@ -35,8 +35,11 @@ class _PasteCodeScreenState extends State { SizedBox(height: 27), Padding( padding: const EdgeInsets.symmetric(horizontal: 40.0), - child: TextField( + child: WaveInput( + type: WaveInputType.code, controller: _codeController, + // TODO: Set error flag properly + hasError: false, ), ), SizedBox(height: 135), From 10d929398c57405a4292e771c551db8342f0d54b Mon Sep 17 00:00:00 2001 From: Arsen Latipov Date: Thu, 9 Oct 2025 03:07:16 +0300 Subject: [PATCH 2/3] [wave-4] WaveInput design fix --- lib/src/screens/foreground_switch_screen/paste_code_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/screens/foreground_switch_screen/paste_code_screen.dart b/lib/src/screens/foreground_switch_screen/paste_code_screen.dart index a6c5aa7..de9ed21 100644 --- a/lib/src/screens/foreground_switch_screen/paste_code_screen.dart +++ b/lib/src/screens/foreground_switch_screen/paste_code_screen.dart @@ -34,7 +34,7 @@ class _PasteCodeScreenState extends State { ), SizedBox(height: 27), Padding( - padding: const EdgeInsets.symmetric(horizontal: 40.0), + padding: const EdgeInsets.symmetric(horizontal: 70.0), child: WaveInput( type: WaveInputType.code, controller: _codeController, From 1213a33013a15faf1ceb9100162eeb94b9b45c9c Mon Sep 17 00:00:00 2001 From: Arsen Latipov Date: Wed, 22 Oct 2025 22:45:10 +0300 Subject: [PATCH 3/3] [wave-4] docs fix --- CHANGELOG.md | 4 ++++ lib/src/localization/app_localizations.dart | 23 ++++++++++----------- pubspec.yaml | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d7c4a5..03550fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.3 + +[Wave-4] WaveInput added + ## 1.0.2 - Offer creation and answering implemented diff --git a/lib/src/localization/app_localizations.dart b/lib/src/localization/app_localizations.dart index c3a351e..2112a3d 100644 --- a/lib/src/localization/app_localizations.dart +++ b/lib/src/localization/app_localizations.dart @@ -63,7 +63,7 @@ import 'app_localizations_ru.dart'; /// property. abstract class AppLocalizations { AppLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale.toString()); + : localeName = intl.Intl.canonicalizedLocale(locale.toString()); final String localeName; @@ -86,16 +86,16 @@ abstract class AppLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. static const List supportedLocales = [ Locale('en'), - Locale('ru'), + Locale('ru') ]; /// The title of the application @@ -132,9 +132,8 @@ AppLocalizations lookupAppLocalizations(Locale locale) { } throw FlutterError( - 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.', - ); + 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.'); } diff --git a/pubspec.yaml b/pubspec.yaml index 0eaba63..88f9a06 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ description: "Peer-to-peer calls and chat application" # Prevent accidental publishing to pub.dev. publish_to: "none" -version: 1.0.2 +version: 1.0.3 environment: sdk: ^3.6.2