Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
bosskmk committed Oct 15, 2022
1 parent e1661bf commit 46f4a64
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 11 deletions.
12 changes: 10 additions & 2 deletions demo/lib/screen/development_screen.dart
Expand Up @@ -45,7 +45,7 @@ class _DevelopmentScreenState extends State<DevelopmentScreen> {
void initState() {
super.initState();

const _Test test = _Test.c;
const _Test test = _Test.b;

// PlutoChangeNotifierFilter.debug = true;
// PlutoChangeNotifierFilter.debugWidgets = [
Expand Down Expand Up @@ -578,6 +578,7 @@ class _HeaderState extends State<_Header> {
Widget build(BuildContext context) {
return PlutoMenuBar(
borderColor: Colors.transparent,
mode: _isMobile ? PlutoMenuBarMode.tap : PlutoMenuBarMode.hover,
textStyle: const TextStyle(
color: Colors.black,
fontSize: 14,
Expand Down Expand Up @@ -686,7 +687,8 @@ class _HeaderState extends State<_Header> {
children: [
PlutoMenuItem(title: 'Select all', onTap: handleSelectAll),
PlutoMenuItem(title: 'Unselect all', onTap: handleUnselect),
PlutoMenuItem(title: 'Select mode', enable: false),
PlutoMenuItem.divider(),
PlutoMenuItem(title: 'Select modes', enable: false),
PlutoMenuItem.radio(
title: 'Mode',
initialRadioValue: gridSelectingMode,
Expand Down Expand Up @@ -761,6 +763,7 @@ class _HeaderState extends State<_Header> {
),
],
),
PlutoMenuItem.divider(),
PlutoMenuItem(
title: 'ReSizeMode',
enable: false,
Expand Down Expand Up @@ -1084,3 +1087,8 @@ enum _Locale {
arabic,
norway,
}

final _isAndroid = defaultTargetPlatform == TargetPlatform.android;
final _isIOS = defaultTargetPlatform == TargetPlatform.iOS;
final _isFuchsia = defaultTargetPlatform == TargetPlatform.fuchsia;
final _isMobile = _isAndroid || _isIOS || _isFuchsia;
2 changes: 2 additions & 0 deletions demo/lib/screen/feature/row_group_screen.dart
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:pluto_grid/pluto_grid.dart';

import '../../dummy_data/development.dart';
import '../../widget/pluto_docs_button.dart';
import '../../widget/pluto_example_button.dart';
import '../../widget/pluto_example_screen.dart';

Expand Down Expand Up @@ -144,6 +145,7 @@ class _RowGroupScreenState extends State<RowGroupScreen> {
url:
'https://github.com/bosskmk/pluto_grid/blob/master/demo/lib/screen/feature/row_group_screen.dart',
),
PlutoDocsButton(url: 'https://pluto.weblaze.dev/row-grouping'),
],
body: PlutoDualGrid(
gridPropsA: PlutoDualGridProps(
Expand Down
25 changes: 25 additions & 0 deletions demo/lib/widget/pluto_docs_button.dart
@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';

import '../helper/launch_url.dart';

class PlutoDocsButton extends StatelessWidget {
final String url;

PlutoDocsButton({
Key? key,
required this.url,
}) : assert(url.isNotEmpty),
super(key: key);

@override
Widget build(BuildContext context) {
return TextButton.icon(
onPressed: () {
launchUrl(url);
},
icon: const FaIcon(FontAwesomeIcons.book),
label: const Text('Documentation'),
);
}
}
6 changes: 3 additions & 3 deletions demo/pubspec.yaml
Expand Up @@ -28,10 +28,10 @@ dependencies:
pluto_grid_export:
path: ../packages/pluto_grid_export
faker: ^2.0.0
url_launcher: ^6.1.2
font_awesome_flutter: ^10.1.0
url_launcher: ^6.1.6
font_awesome_flutter: ^10.2.1
rainbow_color: ^2.0.1
pluto_menu_bar: ^1.1.2
pluto_menu_bar: ^2.0.1

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down
8 changes: 4 additions & 4 deletions packages/pluto_grid_export/pubspec.yaml
Expand Up @@ -15,12 +15,12 @@ dependencies:
pluto_grid:
path: ../..
csv: ^5.0.1
pdf: ^3.8.1
printing: ^5.9.1
pdf: ^3.8.3
printing: ^5.9.3

dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.2.0
build_runner: ^2.1.11
mockito: ^5.3.2
build_runner: ^2.3.0
flutter_lints: ^2.0.1
4 changes: 2 additions & 2 deletions pubspec.yaml
Expand Up @@ -18,6 +18,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.3.1
build_runner: ^2.2.1
mockito: ^5.3.2
build_runner: ^2.3.0
flutter_lints: ^2.0.1

0 comments on commit 46f4a64

Please sign in to comment.