Skip to content

Commit

Permalink
Update demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bosskmk committed May 12, 2023
1 parent 08a029f commit 1747751
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
8 changes: 8 additions & 0 deletions demo/lib/screen/development_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,12 @@ class _HeaderState extends State<_Header> {
case _Locale.french:
localeText = const PlutoGridLocaleText.french();
break;
case _Locale.turkish:
localeText = const PlutoGridLocaleText.turkish();
break;
case _Locale.japanese:
localeText = const PlutoGridLocaleText.japanese();
break;
}

widget.setConfiguration(widget.stateManager.configuration.copyWith(
Expand Down Expand Up @@ -1173,6 +1179,8 @@ enum _Locale {
persian,
russian,
spanish,
turkish,
japanese,
}

final _isAndroid = defaultTargetPlatform == TargetPlatform.android;
Expand Down
21 changes: 21 additions & 0 deletions demo/lib/screen/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,27 @@ class PlutoContributors extends StatelessWidget {
launchUrl('https://github.com/coda538');
},
),
PlutoContributorTile(
name: 'billyio',
linkTitle: 'Github',
onTapLink: () {
launchUrl('https://github.com/billyio');
},
),
PlutoContributorTile(
name: 'Mehmet',
linkTitle: 'Github',
onTapLink: () {
launchUrl('https://github.com/mehmetkalayci');
},
),
PlutoContributorTile(
name: 'Tautvydas Šidlauskas',
linkTitle: 'Github',
onTapLink: () {
launchUrl('https://github.com/sidlatau');
},
),
PlutoContributorTile.invisible(
name: 'And you.',
linkTitle: 'Github',
Expand Down
4 changes: 2 additions & 2 deletions lib/src/pluto_grid_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ class PlutoGridLocaleText {
// Common
this.loadingText = 'Lädt',
});

const PlutoGridLocaleText.turkish({
// Column menu
this.unfreezeColumn = 'Sütunu serbest bırak',
Expand Down Expand Up @@ -1539,7 +1539,7 @@ class PlutoGridLocaleText {
this.minute = 'Dakika',
// Common
this.loadingText = 'Yükleniyor',
});
});

const PlutoGridLocaleText.japanese({
// Column menu
Expand Down
12 changes: 12 additions & 0 deletions test/src/pluto_grid_configuration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -650,5 +650,17 @@ void main() {

expect(locale.loadingText, 'Lädt');
});

test('turkish 이 호출 되어야 한다.', () {
const locale = PlutoGridLocaleText.turkish();

expect(locale.loadingText, 'Yükleniyor');
});

test('japanese 이 호출 되어야 한다.', () {
const locale = PlutoGridLocaleText.japanese();

expect(locale.loadingText, 'にゃ〜');
});
});
}

0 comments on commit 1747751

Please sign in to comment.