Merge pull request #3334 from NicKoehler/file-manager-redesign
File manager redesign
2
flutter/assets/arrow.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="305.118 110.478 32 32" width="32pt" height="32pt"><g><path d=" M 305.118 110.478 L 337.118 110.478 L 337.118 142.478 L 305.118 142.478 L 305.118 110.478 Z " fill="none"/><path d=" M 322.26 126.052 L 316.297 120.09 C 315.72 119.512 315.72 118.574 316.297 117.997 L 316.297 117.997 C 316.875 117.419 317.813 117.419 318.39 117.997 L 326.02 125.627 C 326.49 126.097 326.49 126.86 326.02 127.33 L 318.39 134.959 C 317.813 135.537 316.875 135.537 316.297 134.959 L 316.297 134.959 C 315.72 134.382 315.72 133.444 316.297 132.866 L 322.26 126.904 C 322.495 126.669 322.495 126.287 322.26 126.052 Z " fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 796 B |
2
flutter/assets/dots.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="105.516 106.603 32 32" width="32pt" height="32pt"><g><path d=" M 105.516 106.603 L 137.516 106.603 L 137.516 138.603 L 105.516 138.603 L 105.516 106.603 Z " fill="none"/><path d=" M 118.954 115.165 C 118.954 113.751 120.102 112.603 121.516 112.603 C 122.929 112.603 124.077 113.751 124.077 115.165 C 124.077 116.579 122.929 117.727 121.516 117.727 C 120.102 117.727 118.954 116.579 118.954 115.165 L 118.954 115.165 Z M 118.954 122.603 C 118.954 121.189 120.102 120.041 121.516 120.041 C 122.929 120.041 124.077 121.189 124.077 122.603 C 124.077 124.017 122.929 125.165 121.516 125.165 C 120.102 125.165 118.954 124.017 118.954 122.603 L 118.954 122.603 Z M 118.954 130.041 C 118.954 128.627 120.102 127.479 121.516 127.479 C 122.929 127.479 124.077 128.627 124.077 130.041 C 124.077 131.455 122.929 132.603 121.516 132.603 C 120.102 132.603 118.954 131.455 118.954 130.041 Z " fill-rule="evenodd" fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 1.1 KiB |
2
flutter/assets/file.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="187.624 70.761 32 32" width="32pt" height="32pt"><g><path d=" M 187.624 70.761 L 219.624 70.761 L 219.624 102.761 L 187.624 102.761 L 187.624 70.761 Z " fill="none"/><path d=" M 199.771 89.326 L 207.477 89.326 C 207.944 89.326 208.324 89.705 208.324 90.173 L 208.324 90.173 C 208.324 90.64 207.944 91.019 207.477 91.019 L 199.771 91.019 C 199.304 91.019 198.924 90.64 198.924 90.173 L 198.924 90.173 C 198.924 89.705 199.304 89.326 199.771 89.326 L 199.771 89.326 L 199.771 89.326 Z M 199.771 85.914 L 207.477 85.914 C 207.944 85.914 208.324 86.294 208.324 86.761 L 208.324 86.761 C 208.324 87.228 207.944 87.608 207.477 87.608 L 199.771 87.608 C 199.304 87.608 198.924 87.228 198.924 86.761 L 198.924 86.761 C 198.924 86.294 199.304 85.914 199.771 85.914 L 199.771 85.914 Z M 196.935 81.117 L 196.935 92.406 C 196.935 93.974 198.21 95.248 199.78 95.248 L 207.468 95.248 C 209.038 95.248 210.313 93.974 210.313 92.406 L 210.313 81.117 C 210.313 79.548 209.038 78.274 207.468 78.274 L 199.78 78.274 C 198.21 78.274 196.935 79.548 196.935 81.117 L 196.935 81.117 L 196.935 81.117 Z M 199.771 82.503 L 207.477 82.503 C 207.944 82.503 208.324 82.882 208.324 83.35 L 208.324 83.35 C 208.324 83.817 207.944 84.196 207.477 84.196 L 199.771 84.196 C 199.304 84.196 198.924 83.817 198.924 83.35 L 198.924 83.35 C 198.924 82.882 199.304 82.503 199.771 82.503 Z " fill-rule="evenodd" fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 1.5 KiB |
2
flutter/assets/folder.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="129.858 75.669 32 32" width="32pt" height="32pt"><g><path d=" M 129.858 75.669 L 161.858 75.669 L 161.858 107.669 L 129.858 107.669 L 129.858 75.669 Z " fill="none"/><path d=" M 138.617 99.535 L 153.1 99.535 C 154.622 99.535 155.858 98.299 155.858 96.777 L 155.858 89.32 C 155.858 87.797 154.622 86.561 153.1 86.561 L 147.703 86.561 C 147.399 86.561 147.151 86.314 147.151 86.009 L 147.151 85.182 C 147.151 84.421 146.533 83.802 145.772 83.802 L 139.996 83.802 C 139.235 83.802 138.18 84.239 137.641 84.778 L 136.833 85.586 C 136.295 86.124 135.858 87.179 135.858 87.94 L 135.858 96.777 C 135.858 98.299 137.094 99.535 138.617 99.535 Z " fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 840 B |
2
flutter/assets/folder_new.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="59.535 106.603 32 32" width="32pt" height="32pt"><g><path d=" M 59.535 106.603 L 91.535 106.603 L 91.535 138.603 L 59.535 138.603 L 59.535 106.603 Z " fill="none"/><path d=" M 68.294 130.469 L 82.776 130.469 C 84.299 130.469 85.535 129.233 85.535 127.711 L 85.535 120.254 C 85.535 118.731 84.299 117.495 82.776 117.495 L 77.38 117.495 C 77.075 117.495 76.828 117.248 76.828 116.944 L 76.828 116.116 C 76.828 115.355 76.21 114.737 75.449 114.737 L 69.673 114.737 C 68.912 114.737 67.857 115.174 67.318 115.712 L 66.51 116.52 C 65.972 117.058 65.535 118.113 65.535 118.875 L 65.535 127.711 C 65.535 129.233 66.771 130.469 68.294 130.469 Z M 80.242 125.161 L 81.924 125.161 C 82.362 125.161 82.718 124.806 82.718 124.368 L 82.718 124.368 C 82.718 123.93 82.362 123.575 81.924 123.575 L 80.242 123.575 L 80.242 121.892 C 80.242 121.454 79.886 121.098 79.448 121.098 L 79.448 121.098 C 79.01 121.098 78.655 121.454 78.655 121.892 L 78.655 123.575 L 76.972 123.575 C 76.534 123.575 76.178 123.93 76.178 124.368 L 76.178 124.368 C 76.178 124.806 76.534 125.161 76.972 125.161 L 78.655 125.161 L 78.655 126.844 C 78.655 127.282 79.01 127.638 79.448 127.638 L 79.448 127.638 C 79.886 127.638 80.242 127.282 80.242 126.844 L 80.242 125.161 Z " fill-rule="evenodd" fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 1.4 KiB |
2
flutter/assets/home.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="13.554 106.603 32 32" width="32pt" height="32pt"><g><path d=" M 13.554 106.603 L 45.554 106.603 L 45.554 138.603 L 13.554 138.603 L 13.554 106.603 Z " fill="none"/><path d=" M 32.944 132.507 L 36.605 132.507 C 37.157 132.507 37.605 132.059 37.605 131.507 L 37.605 123.67 L 39.94 123.67 C 40.492 123.67 40.623 123.354 40.233 122.963 L 30.261 112.992 C 29.871 112.601 29.237 112.601 28.847 112.992 L 18.876 122.963 C 18.485 123.354 18.617 123.67 19.169 123.67 L 21.503 123.67 L 21.503 131.507 C 21.503 132.059 21.951 132.507 22.503 132.507 L 26.164 132.507 C 26.716 132.507 27.164 132.059 27.164 131.507 L 27.164 128.541 C 27.164 128.265 27.388 128.041 27.664 128.041 L 31.444 128.041 C 31.72 128.041 31.944 128.265 31.944 128.541 L 31.944 131.507 C 31.944 132.059 32.393 132.507 32.944 132.507 Z " fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 999 B |
2
flutter/assets/refresh.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="259.244 114.353 32 32" width="32pt" height="32pt"><g><path d=" M 259.244 114.353 L 291.244 114.353 L 291.244 146.353 L 259.244 146.353 L 259.244 114.353 Z " fill="none"/><path d=" M 268.254 130.003 C 268.254 130.725 267.668 131.311 266.945 131.311 C 266.223 131.311 265.637 130.725 265.637 130.003 C 265.639 126.264 267.81 122.867 271.202 121.295 C 274.594 119.724 278.59 120.264 281.442 122.68 L 281.442 121.661 C 281.442 120.939 282.028 120.353 282.751 120.353 C 283.473 120.353 284.059 120.939 284.059 121.661 L 284.059 125.786 C 284.059 126.505 283.476 127.088 282.757 127.088 L 278.788 127.458 C 278.072 127.522 277.438 126.994 277.373 126.277 C 277.309 125.56 277.837 124.927 278.554 124.862 L 279.856 124.743 C 277.79 122.938 274.86 122.506 272.362 123.638 C 269.863 124.771 268.257 127.259 268.254 130.003 Z M 271.959 133.192 C 272.678 133.127 273.313 133.658 273.378 134.377 C 273.443 135.096 272.912 135.731 272.193 135.796 L 270.553 135.944 C 272.603 137.801 275.556 138.275 278.085 137.151 C 280.613 136.027 282.24 133.518 282.235 130.751 C 282.235 130.029 282.821 129.443 283.543 129.443 C 284.266 129.443 284.851 130.029 284.851 130.751 C 284.852 134.439 282.74 137.801 279.417 139.402 C 276.095 141.002 272.149 140.558 269.266 138.259 L 269.266 138.939 C 269.266 139.662 268.68 140.248 267.957 140.248 C 267.235 140.248 266.649 139.662 266.649 138.939 L 266.649 134.865 L 266.649 134.865 C 266.647 134.189 267.162 133.623 267.835 133.563 L 271.954 133.189 L 271.959 133.192 Z " fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 1.7 KiB |
2
flutter/assets/search.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="204.996 114.353 32 32" width="32pt" height="32pt"><g><path d=" M 204.996 114.353 L 236.996 114.353 L 236.996 146.353 L 204.996 146.353 L 204.996 114.353 Z " fill="none"/><path d=" M 230.603 139.96 L 230.603 139.96 C 230.08 140.484 229.229 140.484 228.706 139.96 L 223.712 134.966 C 220.568 137.205 216.172 136.915 213.353 134.096 C 210.211 130.954 210.211 125.852 213.353 122.71 C 216.495 119.567 221.597 119.567 224.739 122.71 C 227.558 125.529 227.848 129.925 225.609 133.068 L 230.603 138.063 C 231.127 138.586 231.127 139.436 230.603 139.96 Z M 213.456 128.413 C 213.456 125.328 215.961 122.822 219.047 122.822 C 222.133 122.822 224.638 125.328 224.638 128.413 C 224.638 131.499 222.133 134.005 219.047 134.005 C 215.961 134.005 213.456 131.499 213.456 128.413 Z " fill-rule="evenodd" fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 992 B |
2
flutter/assets/trash.svg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="151.496 106.603 32 32" width="32pt" height="32pt"><g><path d=" M 151.496 106.603 L 183.496 106.603 L 183.496 138.603 L 151.496 138.603 L 151.496 106.603 Z " fill="none"/><path d=" M 162.872 114.091 L 161.304 114.091 C 160.527 114.091 159.897 114.721 159.897 115.498 L 159.897 115.498 C 159.897 116.275 160.527 116.905 161.304 116.905 L 173.688 116.905 C 174.465 116.905 175.096 116.275 175.096 115.498 L 175.096 115.498 C 175.096 114.721 174.465 114.091 173.688 114.091 L 172.12 114.091 L 172.12 113.784 C 172.12 113.132 171.591 112.603 170.939 112.603 L 164.053 112.603 C 163.401 112.603 162.872 113.132 162.872 113.784 L 162.872 114.091 Z M 161.497 117.967 L 173.495 117.967 C 173.779 117.967 174.01 118.198 174.01 118.482 L 174.01 130.03 C 174.01 131.45 172.857 132.603 171.437 132.603 L 163.556 132.603 C 162.135 132.603 160.982 131.45 160.982 130.03 L 160.982 118.482 C 160.982 118.198 161.213 117.967 161.497 117.967 Z " fill-rule="evenodd" fill="rgb(0,0,0)"/></g></svg>
|
After Width: | Height: | Size: 1.1 KiB |
@ -152,7 +152,7 @@ class MyTheme {
|
|||||||
static const Color canvasColor = Color(0xFF212121);
|
static const Color canvasColor = Color(0xFF212121);
|
||||||
static const Color border = Color(0xFFCCCCCC);
|
static const Color border = Color(0xFFCCCCCC);
|
||||||
static const Color idColor = Color(0xFF00B6F0);
|
static const Color idColor = Color(0xFF00B6F0);
|
||||||
static const Color darkGray = Color(0xFFB9BABC);
|
static const Color darkGray = Color.fromARGB(255, 148, 148, 148);
|
||||||
static const Color cmIdColor = Color(0xFF21790B);
|
static const Color cmIdColor = Color(0xFF21790B);
|
||||||
static const Color dark = Colors.black87;
|
static const Color dark = Colors.black87;
|
||||||
static const Color button = Color(0xFF2C8CFF);
|
static const Color button = Color(0xFF2C8CFF);
|
||||||
@ -160,8 +160,9 @@ class MyTheme {
|
|||||||
|
|
||||||
static ThemeData lightTheme = ThemeData(
|
static ThemeData lightTheme = ThemeData(
|
||||||
brightness: Brightness.light,
|
brightness: Brightness.light,
|
||||||
backgroundColor: Color(0xFFFFFFFF),
|
backgroundColor: Color(0xFFEEEEEE),
|
||||||
scaffoldBackgroundColor: Color(0xFFEEEEEE),
|
hoverColor: Color.fromARGB(255, 224, 224, 224),
|
||||||
|
scaffoldBackgroundColor: Color(0xFFFFFFFF),
|
||||||
textTheme: const TextTheme(
|
textTheme: const TextTheme(
|
||||||
titleLarge: TextStyle(fontSize: 19, color: Colors.black87),
|
titleLarge: TextStyle(fontSize: 19, color: Colors.black87),
|
||||||
titleSmall: TextStyle(fontSize: 14, color: Colors.black87),
|
titleSmall: TextStyle(fontSize: 14, color: Colors.black87),
|
||||||
@ -169,6 +170,7 @@ class MyTheme {
|
|||||||
bodyMedium:
|
bodyMedium:
|
||||||
TextStyle(fontSize: 14, color: Colors.black87, height: 1.25),
|
TextStyle(fontSize: 14, color: Colors.black87, height: 1.25),
|
||||||
labelLarge: TextStyle(fontSize: 16.0, color: MyTheme.accent80)),
|
labelLarge: TextStyle(fontSize: 16.0, color: MyTheme.accent80)),
|
||||||
|
cardColor: Color(0xFFEEEEEE),
|
||||||
hintColor: Color(0xFFAAAAAA),
|
hintColor: Color(0xFFAAAAAA),
|
||||||
primarySwatch: Colors.blue,
|
primarySwatch: Colors.blue,
|
||||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||||||
@ -191,8 +193,9 @@ class MyTheme {
|
|||||||
);
|
);
|
||||||
static ThemeData darkTheme = ThemeData(
|
static ThemeData darkTheme = ThemeData(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
backgroundColor: Color(0xFF252525),
|
backgroundColor: Color(0xFF24252B),
|
||||||
scaffoldBackgroundColor: Color(0xFF141414),
|
hoverColor: Color.fromARGB(255, 45, 46, 53),
|
||||||
|
scaffoldBackgroundColor: Color(0xFF18191E),
|
||||||
textTheme: const TextTheme(
|
textTheme: const TextTheme(
|
||||||
titleLarge: TextStyle(fontSize: 19),
|
titleLarge: TextStyle(fontSize: 19),
|
||||||
titleSmall: TextStyle(fontSize: 14),
|
titleSmall: TextStyle(fontSize: 14),
|
||||||
@ -200,7 +203,7 @@ class MyTheme {
|
|||||||
bodyMedium: TextStyle(fontSize: 14, height: 1.25),
|
bodyMedium: TextStyle(fontSize: 14, height: 1.25),
|
||||||
labelLarge: TextStyle(
|
labelLarge: TextStyle(
|
||||||
fontSize: 16.0, fontWeight: FontWeight.bold, color: accent80)),
|
fontSize: 16.0, fontWeight: FontWeight.bold, color: accent80)),
|
||||||
cardColor: Color(0xFF252525),
|
cardColor: Color(0xFF24252B),
|
||||||
primarySwatch: Colors.blue,
|
primarySwatch: Colors.blue,
|
||||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||||||
tabBarTheme: const TabBarTheme(
|
tabBarTheme: const TabBarTheme(
|
||||||
@ -217,9 +220,8 @@ class MyTheme {
|
|||||||
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
|
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
checkboxTheme: const CheckboxThemeData(
|
checkboxTheme:
|
||||||
checkColor: MaterialStatePropertyAll(dark)
|
const CheckboxThemeData(checkColor: MaterialStatePropertyAll(dark)),
|
||||||
),
|
|
||||||
).copyWith(
|
).copyWith(
|
||||||
extensions: <ThemeExtension<dynamic>>[
|
extensions: <ThemeExtension<dynamic>>[
|
||||||
ColorThemeExtension.dark,
|
ColorThemeExtension.dark,
|
||||||
|
@ -53,7 +53,7 @@ const int kDesktopMaxDisplayHeight = 1080;
|
|||||||
|
|
||||||
const double kDesktopFileTransferNameColWidth = 200;
|
const double kDesktopFileTransferNameColWidth = 200;
|
||||||
const double kDesktopFileTransferModifiedColWidth = 120;
|
const double kDesktopFileTransferModifiedColWidth = 120;
|
||||||
const double kDesktopFileTransferRowHeight = 25.0;
|
const double kDesktopFileTransferRowHeight = 30.0;
|
||||||
const double kDesktopFileTransferHeaderHeight = 25.0;
|
const double kDesktopFileTransferHeaderHeight = 25.0;
|
||||||
|
|
||||||
// https://en.wikipedia.org/wiki/Non-breaking_space
|
// https://en.wikipedia.org/wiki/Non-breaking_space
|
||||||
|
@ -86,18 +86,14 @@ class _FileManagerTabPageState extends State<FileManagerTabPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final tabWidget = Container(
|
final tabWidget = Scaffold(
|
||||||
decoration: BoxDecoration(
|
backgroundColor: Theme.of(context).cardColor,
|
||||||
border: Border.all(color: MyTheme.color(context).border!)),
|
body: DesktopTab(
|
||||||
child: Scaffold(
|
controller: tabController,
|
||||||
backgroundColor: Theme.of(context).backgroundColor,
|
onWindowCloseButton: handleWindowCloseButton,
|
||||||
body: DesktopTab(
|
tail: const AddButton().paddingOnly(left: 10),
|
||||||
controller: tabController,
|
labelGetter: DesktopTab.labelGetterAlias,
|
||||||
onWindowCloseButton: handleWindowCloseButton,
|
));
|
||||||
tail: const AddButton().paddingOnly(left: 10),
|
|
||||||
labelGetter: DesktopTab.labelGetterAlias,
|
|
||||||
)),
|
|
||||||
);
|
|
||||||
return Platform.isMacOS
|
return Platform.isMacOS
|
||||||
? tabWidget
|
? tabWidget
|
||||||
: SubWindowDragToResizeArea(
|
: SubWindowDragToResizeArea(
|
||||||
|
@ -27,6 +27,7 @@ class MenuButton extends StatefulWidget {
|
|||||||
|
|
||||||
class _MenuButtonState extends State<MenuButton> {
|
class _MenuButtonState extends State<MenuButton> {
|
||||||
bool _isHover = false;
|
bool _isHover = false;
|
||||||
|
final double _borderRadius = 8.0;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -38,16 +39,17 @@ class _MenuButtonState extends State<MenuButton> {
|
|||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
child: Ink(
|
child: Ink(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(5),
|
borderRadius: BorderRadius.circular(_borderRadius),
|
||||||
color: _isHover ? widget.hoverColor : widget.color,
|
color: _isHover ? widget.hoverColor : widget.color,
|
||||||
),
|
),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
|
hoverColor: widget.hoverColor,
|
||||||
onHover: (val) {
|
onHover: (val) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_isHover = val;
|
_isHover = val;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
borderRadius: BorderRadius.circular(5),
|
borderRadius: BorderRadius.circular(_borderRadius),
|
||||||
splashColor: widget.splashColor,
|
splashColor: widget.splashColor,
|
||||||
enableFeedback: widget.enableFeedback,
|
enableFeedback: widget.enableFeedback,
|
||||||
onTap: widget.onPressed,
|
onTap: widget.onPressed,
|
||||||
|
@ -325,8 +325,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: bc8604a88e52b2b6e64d2661ae49a71450a47af8
|
ref: f37357ed98a10717576eb9ed8413e92b2ec5d13a
|
||||||
resolved-ref: bc8604a88e52b2b6e64d2661ae49a71450a47af8
|
resolved-ref: f37357ed98a10717576eb9ed8413e92b2ec5d13a
|
||||||
url: "https://github.com/Kingtous/rustdesk_desktop_multi_window"
|
url: "https://github.com/Kingtous/rustdesk_desktop_multi_window"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
@ -970,6 +970,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.11.1"
|
version: "1.11.1"
|
||||||
|
percent_indicator:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: percent_indicator
|
||||||
|
sha256: cec41f67181fbd5322aa68b355621d1a4eea827426b8eeb613f6cbe195ff7b4a
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.2.2"
|
||||||
petitparser:
|
petitparser:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1216,6 +1224,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.1"
|
version: "1.2.1"
|
||||||
|
texture_rgba_renderer:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: texture_rgba_renderer
|
||||||
|
sha256: fbb09b2c6b4ce71261927f9e7e4ea339af3e2f3f2b175f6fb921de1c66ec848d
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.0.8"
|
||||||
timing:
|
timing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -19,156 +19,153 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
|||||||
version: 1.2.0
|
version: 1.2.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.0"
|
sdk: ">=2.17.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
# The following adds the Cupertino Icons font to your application.
|
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
|
||||||
cupertino_icons: ^1.0.3
|
|
||||||
ffi: ^2.0.1
|
|
||||||
path_provider: ^2.0.12
|
|
||||||
external_path: ^1.0.1
|
|
||||||
provider: ^6.0.3
|
|
||||||
tuple: ^2.0.0
|
|
||||||
wakelock: ^0.6.2
|
|
||||||
device_info_plus: ^4.1.2
|
|
||||||
#firebase_analytics: ^9.1.5
|
|
||||||
package_info_plus: ^1.4.2
|
|
||||||
url_launcher: ^6.0.9
|
|
||||||
toggle_switch: ^1.4.0
|
|
||||||
dash_chat_2: ^0.0.14
|
|
||||||
draggable_float_widget: ^0.0.2
|
|
||||||
settings_ui: ^2.0.2
|
|
||||||
flutter_breadcrumb: ^1.0.1
|
|
||||||
http: ^0.13.4
|
|
||||||
qr_code_scanner: ^1.0.0
|
|
||||||
zxing2: ^0.1.0
|
|
||||||
image_picker: ^0.8.5
|
|
||||||
image: ^3.1.3
|
|
||||||
back_button_interceptor: ^6.0.1
|
|
||||||
flutter_rust_bridge: ^1.61.1
|
|
||||||
window_manager:
|
|
||||||
git:
|
|
||||||
url: https://github.com/Kingtous/rustdesk_window_manager
|
|
||||||
ref: 32b24c66151b72bba033ef8b954486aa9351d97b
|
|
||||||
desktop_multi_window:
|
|
||||||
git:
|
|
||||||
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
|
||||||
ref: f37357ed98a10717576eb9ed8413e92b2ec5d13a
|
|
||||||
freezed_annotation: ^2.0.3
|
|
||||||
flutter_custom_cursor: ^0.0.4
|
|
||||||
window_size:
|
|
||||||
git:
|
|
||||||
url: https://github.com/google/flutter-desktop-embedding.git
|
|
||||||
path: plugins/window_size
|
|
||||||
ref: a738913c8ce2c9f47515382d40827e794a334274
|
|
||||||
get: ^4.6.5
|
|
||||||
visibility_detector: ^0.3.3
|
|
||||||
contextmenu: ^3.0.0
|
|
||||||
desktop_drop: ^0.3.3
|
|
||||||
scroll_pos: ^0.3.0
|
|
||||||
debounce_throttle: ^2.0.0
|
|
||||||
file_picker: ^5.1.0
|
|
||||||
flutter_svg: ^1.1.5
|
|
||||||
flutter_improved_scrolling:
|
|
||||||
# currently, we use flutter 3.0.5 for windows build, latest for other builds.
|
|
||||||
#
|
|
||||||
# for flutter 3.0.5, please use official version(just comment code below).
|
|
||||||
# if build rustdesk by flutter >=3.3, please use our custom pub below (uncomment code below).
|
|
||||||
git:
|
|
||||||
url: https://github.com/Kingtous/flutter_improved_scrolling
|
|
||||||
ref: 62f09545149f320616467c306c8c5f71714a18e6
|
|
||||||
uni_links: ^0.5.1
|
|
||||||
uni_links_desktop: ^0.1.4
|
|
||||||
path: ^1.8.1
|
|
||||||
auto_size_text: ^3.0.0
|
|
||||||
bot_toast: ^4.0.3
|
|
||||||
win32: any
|
|
||||||
password_strength: ^0.2.0
|
|
||||||
flutter_launcher_icons: ^0.11.0
|
|
||||||
flutter_keyboard_visibility: ^5.4.0
|
|
||||||
texture_rgba_renderer: ^0.0.8
|
|
||||||
|
|
||||||
|
# The following adds the Cupertino Icons font to your application.
|
||||||
|
# Use with the CupertinoIcons class for iOS style icons.
|
||||||
|
cupertino_icons: ^1.0.3
|
||||||
|
ffi: ^2.0.1
|
||||||
|
path_provider: ^2.0.12
|
||||||
|
external_path: ^1.0.1
|
||||||
|
provider: ^6.0.3
|
||||||
|
tuple: ^2.0.0
|
||||||
|
wakelock: ^0.6.2
|
||||||
|
device_info_plus: ^4.1.2
|
||||||
|
#firebase_analytics: ^9.1.5
|
||||||
|
package_info_plus: ^1.4.2
|
||||||
|
url_launcher: ^6.0.9
|
||||||
|
toggle_switch: ^1.4.0
|
||||||
|
dash_chat_2: ^0.0.14
|
||||||
|
draggable_float_widget: ^0.0.2
|
||||||
|
settings_ui: ^2.0.2
|
||||||
|
flutter_breadcrumb: ^1.0.1
|
||||||
|
http: ^0.13.4
|
||||||
|
qr_code_scanner: ^1.0.0
|
||||||
|
zxing2: ^0.1.0
|
||||||
|
image_picker: ^0.8.5
|
||||||
|
image: ^3.1.3
|
||||||
|
back_button_interceptor: ^6.0.1
|
||||||
|
flutter_rust_bridge: ^1.61.1
|
||||||
|
window_manager:
|
||||||
|
git:
|
||||||
|
url: https://github.com/Kingtous/rustdesk_window_manager
|
||||||
|
ref: 32b24c66151b72bba033ef8b954486aa9351d97b
|
||||||
|
desktop_multi_window:
|
||||||
|
git:
|
||||||
|
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
||||||
|
ref: f37357ed98a10717576eb9ed8413e92b2ec5d13a
|
||||||
|
freezed_annotation: ^2.0.3
|
||||||
|
flutter_custom_cursor: ^0.0.4
|
||||||
|
window_size:
|
||||||
|
git:
|
||||||
|
url: https://github.com/google/flutter-desktop-embedding.git
|
||||||
|
path: plugins/window_size
|
||||||
|
ref: a738913c8ce2c9f47515382d40827e794a334274
|
||||||
|
get: ^4.6.5
|
||||||
|
visibility_detector: ^0.3.3
|
||||||
|
contextmenu: ^3.0.0
|
||||||
|
desktop_drop: ^0.3.3
|
||||||
|
scroll_pos: ^0.3.0
|
||||||
|
debounce_throttle: ^2.0.0
|
||||||
|
file_picker: ^5.1.0
|
||||||
|
flutter_svg: ^1.1.5
|
||||||
|
flutter_improved_scrolling:
|
||||||
|
# currently, we use flutter 3.0.5 for windows build, latest for other builds.
|
||||||
|
#
|
||||||
|
# for flutter 3.0.5, please use official version(just comment code below).
|
||||||
|
# if build rustdesk by flutter >=3.3, please use our custom pub below (uncomment code below).
|
||||||
|
git:
|
||||||
|
url: https://github.com/Kingtous/flutter_improved_scrolling
|
||||||
|
ref: 62f09545149f320616467c306c8c5f71714a18e6
|
||||||
|
uni_links: ^0.5.1
|
||||||
|
uni_links_desktop: ^0.1.4
|
||||||
|
path: ^1.8.1
|
||||||
|
auto_size_text: ^3.0.0
|
||||||
|
bot_toast: ^4.0.3
|
||||||
|
win32: any
|
||||||
|
password_strength: ^0.2.0
|
||||||
|
flutter_launcher_icons: ^0.11.0
|
||||||
|
flutter_keyboard_visibility: ^5.4.0
|
||||||
|
texture_rgba_renderer: ^0.0.8
|
||||||
|
percent_indicator: ^4.2.2
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
icons_launcher: ^2.0.4
|
icons_launcher: ^2.0.4
|
||||||
#flutter_test:
|
#flutter_test:
|
||||||
#sdk: flutter
|
#sdk: flutter
|
||||||
build_runner: ^2.1.11
|
build_runner: ^2.1.11
|
||||||
freezed: ^2.0.3
|
freezed: ^2.0.3
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
ffigen: ^7.2.4
|
ffigen: ^7.2.4
|
||||||
|
|
||||||
# rerun: flutter pub run flutter_launcher_icons
|
# rerun: flutter pub run flutter_launcher_icons
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
image_path: "../res/icon.png"
|
image_path: "../res/icon.png"
|
||||||
remove_alpha_ios: true
|
remove_alpha_ios: true
|
||||||
android: true
|
android: true
|
||||||
ios: true
|
ios: true
|
||||||
windows:
|
windows:
|
||||||
generate: true
|
generate: true
|
||||||
macos:
|
macos:
|
||||||
image_path: "../res/mac-icon.png"
|
image_path: "../res/mac-icon.png"
|
||||||
generate: true
|
generate: true
|
||||||
linux: true
|
linux: true
|
||||||
web:
|
web:
|
||||||
generate: true
|
generate: true
|
||||||
|
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://dart.dev/tools/pub/pubspec
|
# following page: https://dart.dev/tools/pub/pubspec
|
||||||
|
|
||||||
# The following section is specific to Flutter.
|
# The following section is specific to Flutter.
|
||||||
flutter:
|
flutter:
|
||||||
# The following line ensures that the Material Icons font is
|
# The following line ensures that the Material Icons font is
|
||||||
# included with your application, so that you can use the icons in
|
# included with your application, so that you can use the icons in
|
||||||
# the material Icons class.
|
# the material Icons class.
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
# To add assets to your application, add an assets section, like this:
|
# To add assets to your application, add an assets section, like this:
|
||||||
assets:
|
assets:
|
||||||
- assets/
|
- assets/
|
||||||
|
|
||||||
fonts:
|
fonts:
|
||||||
- family: GestureIcons
|
- family: GestureIcons
|
||||||
fonts:
|
fonts:
|
||||||
- asset: assets/gestures.ttf
|
- asset: assets/gestures.ttf
|
||||||
- family: Tabbar
|
- family: Tabbar
|
||||||
fonts:
|
fonts:
|
||||||
- asset: assets/tabbar.ttf
|
- asset: assets/tabbar.ttf
|
||||||
- family: PeerSearchbar
|
- family: PeerSearchbar
|
||||||
fonts:
|
fonts:
|
||||||
- asset: assets/peer_searchbar.ttf
|
- asset: assets/peer_searchbar.ttf
|
||||||
|
|
||||||
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
|
# https://flutter.dev/assets-and-images/#resolution-aware.
|
||||||
|
|
||||||
|
# For details regarding adding assets from package dependencies, see
|
||||||
|
# https://flutter.dev/assets-and-images/#from-packages
|
||||||
|
|
||||||
# An image asset can refer to one or more resolution-specific "variants", see
|
# To add custom fonts to your application, add a fonts section here,
|
||||||
# https://flutter.dev/assets-and-images/#resolution-aware.
|
# in this "flutter" section. Each entry in this list should have a
|
||||||
|
# "family" key with the font family name, and a "fonts" key with a
|
||||||
# For details regarding adding assets from package dependencies, see
|
# list giving the asset and other descriptors for the font. For
|
||||||
# https://flutter.dev/assets-and-images/#from-packages
|
# example:
|
||||||
|
# fonts:
|
||||||
# To add custom fonts to your application, add a fonts section here,
|
# - family: Schyler
|
||||||
# in this "flutter" section. Each entry in this list should have a
|
# fonts:
|
||||||
# "family" key with the font family name, and a "fonts" key with a
|
# - asset: fonts/Schyler-Regular.ttf
|
||||||
# list giving the asset and other descriptors for the font. For
|
# - asset: fonts/Schyler-Italic.ttf
|
||||||
# example:
|
# style: italic
|
||||||
# fonts:
|
# - family: Trajan Pro
|
||||||
# - family: Schyler
|
# fonts:
|
||||||
# fonts:
|
# - asset: fonts/TrajanPro.ttf
|
||||||
# - asset: fonts/Schyler-Regular.ttf
|
# - asset: fonts/TrajanPro_Bold.ttf
|
||||||
# - asset: fonts/Schyler-Italic.ttf
|
# weight: 700
|
||||||
# style: italic
|
#
|
||||||
# - family: Trajan Pro
|
# For details regarding fonts from package dependencies,
|
||||||
# fonts:
|
# see https://flutter.dev/custom-fonts/#from-packages
|
||||||
# - asset: fonts/TrajanPro.ttf
|
|
||||||
# - asset: fonts/TrajanPro_Bold.ttf
|
|
||||||
# weight: 700
|
|
||||||
#
|
|
||||||
# For details regarding fonts from package dependencies,
|
|
||||||
# see https://flutter.dev/custom-fonts/#from-packages
|
|
||||||
|