Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6e29b42

Browse files
author
Nurhan Turgut
committed
use roboto font instead of default font
1 parent 34c4739 commit 6e29b42

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
Binary file not shown.
Binary file not shown.

e2etests/web/regular_integration_tests/lib/text_editing_main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class MyApp extends StatelessWidget {
1111
Widget build(BuildContext context) {
1212
return MaterialApp(
1313
key: const Key('mainapp'),
14+
theme: ThemeData(fontFamily: 'RobotoMono'),
1415
title: 'Integration Test App',
1516
home: MyHomePage(title: 'Integration Test App'),
1617
);
@@ -97,7 +98,7 @@ class _MyHomePageState extends State<MyHomePage> {
9798
child: SelectableText(
9899
'Lorem ipsum dolor sit amet',
99100
key: Key('selectable'),
100-
style: TextStyle(fontFamily: 'Roboto', fontSize: 20.0),
101+
style: TextStyle(fontFamily: 'RobotoMono', fontSize: 20.0),
101102
),
102103
),
103104
],

e2etests/web/regular_integration_tests/pubspec.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ dev_dependencies:
2121
flutter:
2222
assets:
2323
- assets/images/
24+
fonts:
25+
- family: RobotoMono
26+
fonts:
27+
- asset: fonts/RobotoMono-Bold.ttf
28+
- asset: fonts/RobotoMono-Regular.ttf

0 commit comments

Comments
 (0)