Skip to content

Commit

Permalink
Merge pull request #91 from brianegan-wiredash/fix-accessibility-issues
Browse files Browse the repository at this point in the history
Improve Accessibility
  • Loading branch information
brianegan-wiredash authored Nov 2, 2020
2 parents 1e29051 + 58eb8b4 commit d894e0a
Show file tree
Hide file tree
Showing 38 changed files with 1,227 additions and 333 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of 'main.dart';
import 'package:wiredash/wiredash.dart';

class DemoPolishTranslations extends pl.WiredashLocalizedTranslations {
const DemoPolishTranslations() : super();
Expand Down Expand Up @@ -84,4 +84,25 @@ class DemoCustomTranslations extends WiredashTranslations {
@override
String get validationHintEmail =>
'Please enter a valid email or leave this field blank.';

@override
String get firstPenLabel => 'A dark brown pen';
@override
String get secondPenLabel => 'An off-white pen';
@override
String get thirdPenLabel => 'A teal highlighter';
@override
String get fourthPenLabel => 'An orange highlighter';
@override
String get firstPenSelected => 'The dark brown pen is selected';
@override
String get secondPenSelected => 'The off-white pen is selected';
@override
String get thirdPenSelected => 'The teal highlighter is selected';
@override
String get fourthPenSelected => 'The orange highlighter is selected';
@override
String get companyLogoLabel => 'The Wiredash Logo';
@override
String get undoButtonLabel => 'Undo the latest change';
}
5 changes: 1 addition & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import 'package:flutter/material.dart';
import 'package:wiredash/src/common/translation/l10n/messages_pl.dart' as pl;
import 'package:wiredash/wiredash.dart';

part 'main_localizations.dart';

void main() => runApp(const ExampleApp());

class ExampleApp extends StatefulWidget {
Expand Down Expand Up @@ -49,7 +46,7 @@ class _ExampleAppState extends State<ExampleApp> {
// locale: const Locale('de'),
// textDirection: TextDirection.rtl,
),
theme: WiredashThemeData(brightness: Theme.of(context).brightness),
theme: WiredashThemeData(brightness: Brightness.light),
child: MaterialApp(
navigatorKey: _navigatorKey,
title: 'Adventure 🌎',
Expand Down
Loading

0 comments on commit d894e0a

Please sign in to comment.