Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
Upgrade several dependencies and remove flutter_test
  • Loading branch information
alienc0der committed Jul 29, 2023
1 parent 9a2359a commit 019ac6e
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 163 deletions.
8 changes: 4 additions & 4 deletions lib/screens/export/export_wallet_password_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class _ExportWalletPasswordScreenState
initialDirectory =
(await getApplicationDocumentsDirectory()).path;
}
final walletPath = await getSavePath(
final walletPath = await getSaveLocation(
acceptedTypeGroups: <XTypeGroup>[
const XTypeGroup(
label: 'file',
Expand All @@ -161,17 +161,17 @@ class _ExportWalletPasswordScreenState
if (walletPath != null) {
KeyStoreManager keyStoreManager = KeyStoreManager(
walletPath: Directory(
path.dirname(walletPath),
path.dirname(walletPath.path),
),
);
KeyStore keyStore = KeyStore.fromMnemonic(widget.seed);
await keyStoreManager.saveKeyStore(
keyStore,
_passwordController.text,
name: path.basename(walletPath),
name: path.basename(walletPath.path),
);
if (widget.backupWalletFlow) {
_sendSuccessNotification(walletPath);
_sendSuccessNotification(walletPath.path);
} else {
_updateExportedSeedList();
}
Expand Down
7 changes: 3 additions & 4 deletions lib/widgets/reusable_widgets/chart/standard_chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class StandardChart extends StatelessWidget {
drawVerticalLine: false,
drawHorizontalLine: true,
getDrawingHorizontalLine: (_) {
return FlLine(
return const FlLine(
strokeWidth: 1.0,
color: Colors.black87,
dashArray: [3, 3],
Expand Down Expand Up @@ -109,12 +109,12 @@ class StandardChart extends StatelessWidget {
reservedSize: 26.0,
),
),
rightTitles: AxisTitles(
rightTitles: const AxisTitles(
sideTitles: SideTitles(
showTitles: false,
),
),
topTitles: AxisTitles(
topTitles: const AxisTitles(
sideTitles: SideTitles(
showTitles: false,
)),
Expand All @@ -126,7 +126,6 @@ class StandardChart extends StatelessWidget {
minY: 0.0,
lineBarsData: lineBarsData,
),
swapAnimationDuration: const Duration(milliseconds: 250),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ class StandardLineChartBarData extends LineChartBarData {
required Color color,
required List<FlSpot>? spots,
}) : super(
spots: spots,
isCurved: false,
color: color,
barWidth: 3.0,
isStrokeCapRound: true,
dotData: FlDotData(
dotData: const FlDotData(
show: true,
),
belowBarData: BarAreaData(
Expand Down
Loading

0 comments on commit 019ac6e

Please sign in to comment.