Skip to content

Commit

Permalink
Apply Nanum Gothic on Snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Sep 7, 2023
1 parent 7a4e2ef commit 3ff9022
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ class MyApp extends StatelessWidget {
var yaruTheme = yaru.theme!;
var yaruDarkTheme = yaru.darkTheme!;
ThemeData customTheme = yaruTheme.copyWith(
textTheme: GoogleFonts.nanumGothicTextTheme(),
primaryTextTheme: GoogleFonts.nanumGothicTextTheme(),
);
textTheme: GoogleFonts.nanumGothicTextTheme(),
primaryTextTheme: GoogleFonts.nanumGothicTextTheme(),
appBarTheme: yaruTheme.appBarTheme.copyWith(
titleTextStyle:
GoogleFonts.nanumGothic(color: Colors.black, fontSize: 20)),
snackBarTheme: yaruTheme.snackBarTheme.copyWith(
contentTextStyle: GoogleFonts.nanumGothic(color: Colors.white)));
ThemeData customThemeDark = yaruDarkTheme.copyWith(
textTheme: GoogleFonts.nanumGothicTextTheme(),
primaryTextTheme: GoogleFonts.nanumGothicTextTheme(),
);
textTheme: GoogleFonts.nanumGothicTextTheme(),
primaryTextTheme: GoogleFonts.nanumGothicTextTheme(),
appBarTheme: yaruDarkTheme.appBarTheme.copyWith(
titleTextStyle:
GoogleFonts.nanumGothic(color: Colors.white, fontSize: 20)),
snackBarTheme: yaruDarkTheme.snackBarTheme.copyWith(
contentTextStyle: GoogleFonts.nanumGothic(color: Colors.black)));
return MaterialApp(
theme: customTheme,
darkTheme: customThemeDark,
Expand Down
2 changes: 1 addition & 1 deletion lib/tsplutils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Future<int> sendTsplData(
Uint8List tsplData, int vendorId, int productId) async {
var url = Uri.parse("http://0.0.0.0:5000/write_usb/$vendorId/$productId");

var request = new http.Request("POST", url);
var request = http.Request("POST", url);
request.bodyBytes = tsplData;
var response = await request.send();
return response.statusCode;
Expand Down

0 comments on commit 3ff9022

Please sign in to comment.