An open-source cross-platform alternative to AirDrop
[fixed] solved issue Overlapping UI Elements on Windows #1424 (#1444)
CHUNG-HAOd585297327cf
diff --git a/app/lib/pages/tabs/receive_tab.dart b/app/lib/pages/tabs/receive_tab.dartindex d4ede7c0..bf50e8bb 100644--- a/app/lib/pages/tabs/receive_tab.dart+++ b/app/lib/pages/tabs/receive_tab.dart@@ -28,71 +28,69 @@ class ReceiveTab extends StatelessWidget {constraints: const BoxConstraints(maxWidth: ResponsiveListView.defaultMaxWidth),child: Padding(padding: const EdgeInsets.all(30),- child: Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [- Expanded(- child: Column(+ child: SingleChildScrollView(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [+ Column(children: [- Expanded(- child: Column(- mainAxisAlignment: MainAxisAlignment.center,- children: [- InitialFadeTransition(- duration: const Duration(milliseconds: 300),- delay: const Duration(milliseconds: 200),- child: Consumer(builder: (context, ref) {- final animations = ref.watch(animationProvider);- final activeTab = ref.watch(homeTabProvider);- return RotatingWidget(- duration: const Duration(seconds: 15),- spinning: vm.serverState != null && animations && activeTab == HomeTab.receive,- child: const LocalSendLogo(withText: false),- );- }),- ),- FittedBox(- fit: BoxFit.scaleDown,- child: Text(vm.serverState?.alias ?? vm.aliasSettings, style: const TextStyle(fontSize: 48)),- ),- InitialFadeTransition(- duration: const Duration(milliseconds: 300),- delay: const Duration(milliseconds: 500),- child: Text(- vm.serverState == null ? t.general.offline : vm.localIps.map((ip) => '#${ip.visualId}').toSet().join(' '),- style: const TextStyle(fontSize: 24),- textAlign: TextAlign.center,- ),+ Column(+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ InitialFadeTransition(+ duration: const Duration(milliseconds: 300),+ delay: const Duration(milliseconds: 200),+ child: Consumer(builder: (context, ref) {+ final animations = ref.watch(animationProvider);+ final activeTab = ref.watch(homeTabProvider);+ return RotatingWidget(+ duration: const Duration(seconds: 15),+ spinning: vm.serverState != null && animations && activeTab == HomeTab.receive,+ child: const LocalSendLogo(withText: false),+ );+ }),+ ),+ FittedBox(+ fit: BoxFit.scaleDown,+ child: Text(vm.serverState?.alias ?? vm.aliasSettings, style: const TextStyle(fontSize: 48)),+ ),+ InitialFadeTransition(+ duration: const Duration(milliseconds: 300),+ delay: const Duration(milliseconds: 500),+ child: Text(+ vm.serverState == null ? t.general.offline : vm.localIps.map((ip) => '#${ip.visualId}').toSet().join(' '),+ style: const TextStyle(fontSize: 24),+ textAlign: TextAlign.center,),- ],- ),+ ),+ ],),],),- ),- Padding(- padding: const EdgeInsets.only(top: 10),- child: Center(- child: vm.quickSaveSettings- ? ElevatedButton(- style: ElevatedButton.styleFrom(- backgroundColor: Theme.of(context).colorScheme.primary,- foregroundColor: Theme.of(context).colorScheme.onPrimary,- ),- onPressed: () async => vm.onSetQuickSave(context, false),- child: Text('${t.general.quickSave}: ${t.general.on}'),- )- : TextButton(- style: TextButton.styleFrom(- foregroundColor: Colors.grey,+ Padding(+ padding: const EdgeInsets.only(top: 10),+ child: Center(+ child: vm.quickSaveSettings+ ? ElevatedButton(+ style: ElevatedButton.styleFrom(+ backgroundColor: Theme.of(context).colorScheme.primary,+ foregroundColor: Theme.of(context).colorScheme.onPrimary,+ ),+ onPressed: () async => vm.onSetQuickSave(context, false),+ child: Text('${t.general.quickSave}: ${t.general.on}'),+ )+ : TextButton(+ style: TextButton.styleFrom(+ foregroundColor: Colors.grey,+ ),+ onPressed: () async => vm.onSetQuickSave(context, true),+ child: Text('${t.general.quickSave}: ${t.general.off}'),),- onPressed: () async => vm.onSetQuickSave(context, true),- child: Text('${t.general.quickSave}: ${t.general.off}'),- ),+ ),),- ),- const SizedBox(height: 15),- ],+ const SizedBox(height: 15),+ ],+ ),),),),@@ -182,4 +180,4 @@ class ReceiveTab extends StatelessWidget {],);}-}+}\ No newline at end of filediff --git a/cli/pubspec.lock b/cli/pubspec.lockindex f6668397..9b3c165c 100644--- a/cli/pubspec.lock+++ b/cli/pubspec.lock@@ -84,10 +84,10 @@ packages:dependency: transitivedescription:name: dart_mappable- sha256: c2d4775336d7166590766a1c4451edde2a302efe2a2a35ac09eef9025102e10f+ sha256: "47269caf2060533c29b823ff7fa9706502355ffcb61e7f2a374e3a0fb2f2c3f0"url: "https://pub.dev"source: hosted- version: "4.0.1"+ version: "4.2.2"file:dependency: transitivedescription:@@ -224,6 +224,14 @@ packages:url: "https://pub.dev"source: hostedversion: "2.1.4"+ refena:+ dependency: transitive+ description:+ name: refena+ sha256: "04ef88e22bee3f6735a9e11d81f41c8cf00bd264c396214945156b9858b07619"+ url: "https://pub.dev"+ source: hosted+ version: "2.1.0"shelf:dependency: transitivedescription:@@ -340,10 +348,10 @@ packages:dependency: transitivedescription:name: type_plus- sha256: "2e33cfac2e129297d5874567bdf7587502ec359881e9318551e014d91b02f84a"+ sha256: d5d1019471f0d38b91603adb9b5fd4ce7ab903c879d2fbf1a3f80a630a03fcc9url: "https://pub.dev"source: hosted- version: "2.1.0"+ version: "2.1.1"typed_data:dependency: transitivedescription: