Skip to content

Commit a216999

Browse files
committed
switch to albert sans and try to debug null fed
1 parent 82694f2 commit a216999

7 files changed

+8
-7
lines changed

fonts/AlbertSans-Regular.ttf

45.7 KB
Binary file not shown.

fonts/AlbertSans-SemiBold.ttf

45.7 KB
Binary file not shown.

lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class App extends ConsumerWidget {
4848
textTheme: textThemeDefault,
4949
backgroundColor: white,
5050
scaffoldBackgroundColor: black,
51-
fontFamily: "Inter"),
51+
fontFamily: "Albert Sans"),
5252
);
5353
}
5454
}

lib/screens/home.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class Home extends ConsumerWidget {
1919

2020
@override
2121
Widget build(BuildContext context, WidgetRef ref) {
22-
var network = ref.watch(networkAwareProvider);
23-
22+
final network = ref.watch(networkAwareProvider);
2423
final balance = ref.watch(balanceProvider);
24+
2525
return Textured(
2626
child: Scaffold(
2727
backgroundColor: Colors.transparent,

lib/utils/network_detector_notifier.dart

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class NetworkDetectorNotifier extends StateNotifier<NetworkStatus> {
2323
break;
2424
case ConnectivityResult.none:
2525
newState = NetworkStatus.Off;
26-
// TODO: Handle this case.
2726
break;
2827
}
2928

lib/widgets/balance_display.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class BalanceDisplay extends ConsumerWidget {
5959
data: (_) => Text(
6060
balance != null
6161
? balance.denomination.toReadableString()
62-
: "NULL",
62+
: "SATS",
6363
style: smallText),
6464
loading: () =>
6565
Text("-", style: Theme.of(context).textTheme.headline1),

pubspec.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,12 @@ flutter:
147147
weight: 200
148148
- asset: fonts/Archivo-Thin.ttf
149149
weight: 100
150-
- family: Inter
150+
- family: Albert Sans
151151
fonts:
152-
- asset: fonts/Inter-Regular.ttf
152+
- asset: fonts/AlbertSans-Regular.ttf
153153
weight: 400
154+
- asset: fonts/AlbertSans-SemiBold.ttf
155+
weight: 600
154156

155157
#
156158
# For details regarding fonts from package dependencies,

0 commit comments

Comments
 (0)