🐛 Fixes
This commit is contained in:
		| @@ -1 +1,2 @@ | |||||||
|  | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||||||
| #include "Generated.xcconfig" | #include "Generated.xcconfig" | ||||||
|   | |||||||
| @@ -1 +1,2 @@ | |||||||
|  | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||||||
| #include "Generated.xcconfig" | #include "Generated.xcconfig" | ||||||
|   | |||||||
| @@ -175,7 +175,7 @@ class SolverService { | |||||||
|       CalculationStep( |       CalculationStep( | ||||||
|         title: '第二步:选择解法', |         title: '第二步:选择解法', | ||||||
|         explanation: '无法进行因式分解,我们选择使用求根公式法。', |         explanation: '无法进行因式分解,我们选择使用求根公式法。', | ||||||
|         formula: r'\$\$\Delta = b^2 - 4ac\$\$', |         formula: '\$\$\\Delta = b^2 - 4ac\$\$', | ||||||
|       ), |       ), | ||||||
|     ); |     ); | ||||||
|  |  | ||||||
| @@ -184,8 +184,8 @@ class SolverService { | |||||||
|       CalculationStep( |       CalculationStep( | ||||||
|         title: '第三步:计算判别式 (Delta)', |         title: '第三步:计算判别式 (Delta)', | ||||||
|         explanation: |         explanation: | ||||||
|             '\$\$\Delta = b^2 - 4ac = ($b)^2 - 4 \cdot ($a) \cdot ($c) = $delta\$\$', |             '\$\$\\Delta = b^2 - 4ac = ($b)^2 - 4 \\cdot ($a) \\cdot ($c) = $delta\$\$', | ||||||
|         formula: '\$\$\Delta = $delta\$\$', |         formula: '\$\$\\Delta = $delta\$\$', | ||||||
|       ), |       ), | ||||||
|     ); |     ); | ||||||
|  |  | ||||||
| @@ -198,13 +198,13 @@ class SolverService { | |||||||
|           explanation: |           explanation: | ||||||
|               r'因为 $\Delta > 0$,方程有两个不相等的实数根。公式: $x = \frac{-b \pm \sqrt{\Delta}}{2a}$。', |               r'因为 $\Delta > 0$,方程有两个不相等的实数根。公式: $x = \frac{-b \pm \sqrt{\Delta}}{2a}$。', | ||||||
|           formula: |           formula: | ||||||
|               '\$\$x_1 = ${x1.toStringAsFixed(4)}, \quad x_2 = ${x2.toStringAsFixed(4)}\$\$', |               '\$\$x_1 = ${x1.toStringAsFixed(4)}, \\quad x_2 = ${x2.toStringAsFixed(4)}\$\$', | ||||||
|         ), |         ), | ||||||
|       ); |       ); | ||||||
|       return CalculationResult( |       return CalculationResult( | ||||||
|         steps: steps, |         steps: steps, | ||||||
|         finalAnswer: |         finalAnswer: | ||||||
|             '\$\$x_1 = ${x1.toStringAsFixed(4)}, \quad x_2 = ${x2.toStringAsFixed(4)}\$\$', |             '\$\$x_1 = ${x1.toStringAsFixed(4)}, \\quad x_2 = ${x2.toStringAsFixed(4)}\$\$', | ||||||
|       ); |       ); | ||||||
|     } else if (delta == 0) { |     } else if (delta == 0) { | ||||||
|       final x = -b / (2 * a); |       final x = -b / (2 * a); | ||||||
| @@ -250,7 +250,7 @@ class SolverService { | |||||||
|         formula: |         formula: | ||||||
|             ''' |             ''' | ||||||
|  |  | ||||||
| egin{cases} | \\begin{cases} | ||||||
| ${a1}x ${b1 >= 0 ? '+' : ''} ${b1}y = $c1 & (1) \\ | ${a1}x ${b1 >= 0 ? '+' : ''} ${b1}y = $c1 & (1) \\ | ||||||
| ${a2}x ${b2 >= 0 ? '+' : ''} ${b2}y = $c2 & (2) | ${a2}x ${b2 >= 0 ? '+' : ''} ${b2}y = $c2 & (2) | ||||||
| \\end{cases} | \\end{cases} | ||||||
| @@ -277,7 +277,7 @@ ${a2}x ${b2 >= 0 ? '+' : ''} ${b2}y = $c2 & (2) | |||||||
|         formula: |         formula: | ||||||
|             ''' |             ''' | ||||||
|  |  | ||||||
| egin{cases} | \\begin{cases} | ||||||
| ${newA1}x ${b1 * b2 >= 0 ? '+' : ''} ${b1 * b2}y = $newC1 & (3) \\ | ${newA1}x ${b1 * b2 >= 0 ? '+' : ''} ${b1 * b2}y = $newC1 & (3) \\ | ||||||
| ${newA2}x ${b1 * b2 >= 0 ? '+' : ''} ${b1 * b2}y = $newC2 & (4) | ${newA2}x ${b1 * b2 >= 0 ? '+' : ''} ${b1 * b2}y = $newC2 & (4) | ||||||
| \\end{cases} | \\end{cases} | ||||||
|   | |||||||
| @@ -5,6 +5,8 @@ | |||||||
| import FlutterMacOS | import FlutterMacOS | ||||||
| import Foundation | import Foundation | ||||||
|  |  | ||||||
|  | import path_provider_foundation | ||||||
|  |  | ||||||
| func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { | ||||||
|  |   PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										96
									
								
								pubspec.lock
									
									
									
									
									
								
							
							
						
						
									
										96
									
								
								pubspec.lock
									
									
									
									
									
								
							| @@ -49,6 +49,14 @@ packages: | |||||||
|       url: "https://pub.dev" |       url: "https://pub.dev" | ||||||
|     source: hosted |     source: hosted | ||||||
|     version: "1.19.1" |     version: "1.19.1" | ||||||
|  |   crypto: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: crypto | ||||||
|  |       sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "3.0.6" | ||||||
|   cupertino_icons: |   cupertino_icons: | ||||||
|     dependency: "direct main" |     dependency: "direct main" | ||||||
|     description: |     description: | ||||||
| @@ -65,6 +73,14 @@ packages: | |||||||
|       url: "https://pub.dev" |       url: "https://pub.dev" | ||||||
|     source: hosted |     source: hosted | ||||||
|     version: "1.3.3" |     version: "1.3.3" | ||||||
|  |   ffi: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: ffi | ||||||
|  |       sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.1.4" | ||||||
|   flutter: |   flutter: | ||||||
|     dependency: "direct main" |     dependency: "direct main" | ||||||
|     description: flutter |     description: flutter | ||||||
| @@ -99,6 +115,14 @@ packages: | |||||||
|     description: flutter |     description: flutter | ||||||
|     source: sdk |     source: sdk | ||||||
|     version: "0.0.0" |     version: "0.0.0" | ||||||
|  |   google_fonts: | ||||||
|  |     dependency: "direct main" | ||||||
|  |     description: | ||||||
|  |       name: google_fonts | ||||||
|  |       sha256: ebc94ed30fd13cefd397cb1658b593f21571f014b7d1197eeb41fb95f05d899a | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "6.3.1" | ||||||
|   http: |   http: | ||||||
|     dependency: transitive |     dependency: transitive | ||||||
|     description: |     description: | ||||||
| @@ -211,6 +235,54 @@ packages: | |||||||
|       url: "https://pub.dev" |       url: "https://pub.dev" | ||||||
|     source: hosted |     source: hosted | ||||||
|     version: "1.1.0" |     version: "1.1.0" | ||||||
|  |   path_provider: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: path_provider | ||||||
|  |       sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.1.5" | ||||||
|  |   path_provider_android: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: path_provider_android | ||||||
|  |       sha256: "993381400e94d18469750e5b9dcb8206f15bc09f9da86b9e44a9b0092a0066db" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.2.18" | ||||||
|  |   path_provider_foundation: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: path_provider_foundation | ||||||
|  |       sha256: "16eef174aacb07e09c351502740fa6254c165757638eba1e9116b0a781201bbd" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.4.2" | ||||||
|  |   path_provider_linux: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: path_provider_linux | ||||||
|  |       sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.2.1" | ||||||
|  |   path_provider_platform_interface: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: path_provider_platform_interface | ||||||
|  |       sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.1.2" | ||||||
|  |   path_provider_windows: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: path_provider_windows | ||||||
|  |       sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.3.0" | ||||||
|   petitparser: |   petitparser: | ||||||
|     dependency: transitive |     dependency: transitive | ||||||
|     description: |     description: | ||||||
| @@ -219,6 +291,22 @@ packages: | |||||||
|       url: "https://pub.dev" |       url: "https://pub.dev" | ||||||
|     source: hosted |     source: hosted | ||||||
|     version: "6.1.0" |     version: "6.1.0" | ||||||
|  |   platform: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: platform | ||||||
|  |       sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "3.1.6" | ||||||
|  |   plugin_platform_interface: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: plugin_platform_interface | ||||||
|  |       sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "2.1.8" | ||||||
|   provider: |   provider: | ||||||
|     dependency: transitive |     dependency: transitive | ||||||
|     description: |     description: | ||||||
| @@ -344,6 +432,14 @@ packages: | |||||||
|       url: "https://pub.dev" |       url: "https://pub.dev" | ||||||
|     source: hosted |     source: hosted | ||||||
|     version: "1.1.1" |     version: "1.1.1" | ||||||
|  |   xdg_directories: | ||||||
|  |     dependency: transitive | ||||||
|  |     description: | ||||||
|  |       name: xdg_directories | ||||||
|  |       sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" | ||||||
|  |       url: "https://pub.dev" | ||||||
|  |     source: hosted | ||||||
|  |     version: "1.1.0" | ||||||
|   xml: |   xml: | ||||||
|     dependency: transitive |     dependency: transitive | ||||||
|     description: |     description: | ||||||
|   | |||||||
| @@ -36,6 +36,7 @@ dependencies: | |||||||
|   cupertino_icons: ^1.0.8 |   cupertino_icons: ^1.0.8 | ||||||
|   math_expressions: ^3.0.0 |   math_expressions: ^3.0.0 | ||||||
|   latext: ^0.5.1 |   latext: ^0.5.1 | ||||||
|  |   google_fonts: ^6.3.1 | ||||||
|  |  | ||||||
| dev_dependencies: | dev_dependencies: | ||||||
|   flutter_test: |   flutter_test: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user