Skip to content

Commit

Permalink
add on text scale
Browse files Browse the repository at this point in the history
  • Loading branch information
ulusoyca committed Dec 20, 2024
1 parent cb131d1 commit defa013
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LoginScreenContent extends StatelessWidget {
children: <Widget>[
FlutterLogo(size: 216),
Text(
'Welcome to Coffee Maker!',
'Welcome to Coffee Maker Widgetbook Special!',
style: Theme.of(context).textTheme.titleLarge!,
),
const SizedBox(height: 50),
Expand Down
10 changes: 9 additions & 1 deletion examples/coffee_maker_navigator_2/widgetbook/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:demo_ui_components/demo_ui_components.dart';
import 'package:flutter/material.dart';
import 'package:widgetbook/widgetbook.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;
import 'package:widgetbook_annotation/widgetbook_annotation.dart';

// This file does not exist yet,
// it will be generated in the next step
Expand All @@ -11,7 +12,14 @@ void main() {
runApp(const WidgetbookApp());
}

@widgetbook.App()
@widgetbook.App(
cloudAddonsConfigs: {
'Text Scale Addon': [
TextScaleAddonConfig(1.2),
TextScaleAddonConfig(2.0),
],
},
)
class WidgetbookApp extends StatelessWidget {
const WidgetbookApp({super.key});

Expand Down

0 comments on commit defa013

Please sign in to comment.