mu-dawood / ready

32 stars 9 forks source link

Failed to compile web #15

Closed vanvixi closed 1 year ago

vanvixi commented 1 year ago

Flutter version: 3.0.0 ready: ^1.7.7 Log:

Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/dashboard/drawer.dart:136:32: Error: Member not found: 'DefaultTabController.maybeOf'.
          DefaultTabController.maybeOf(context)?.index = expanded.indexOf(item);
                               ^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/dashboard/drawer.dart:158:32: Error: Member not found: 'DefaultTabController.maybeOf'.
          DefaultTabController.maybeOf(context)?.index = exp.indexOf(item);
                               ^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/dashboard/page_info.dart:82:42: Error: A value of type 'TabController?' can't be assigned to a variable of type 'TabController' because 'TabController?' is nullable and 'TabController' isn't.
 - 'TabController' is from 'package:flutter/src/material/tab_controller.dart' ('/Users/sakura/fvm/versions/3.0.0/packages/flutter/lib/src/material/tab_controller.dart').
    tabController = DefaultTabController.of(context);
                                         ^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/filters/multi_option_filters.dart:135:15: Error: No named parameter with the name 'foregroundColor'.
              foregroundColor: Theme.of(context).colorScheme.error),
              ^^^^^^^^^^^^^^^
/Users/sakura/fvm/versions/3.0.0/packages/flutter/lib/src/material/text_button.dart:145:22: Context: Found this candidate, but the arguments don't match.
  static ButtonStyle styleFrom({
                     ^^^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/filters/single_option_filters.dart:168:15: Error: No named parameter with the name 'foregroundColor'.
              foregroundColor: Theme.of(context).colorScheme.error),
              ^^^^^^^^^^^^^^^
/Users/sakura/fvm/versions/3.0.0/packages/flutter/lib/src/material/text_button.dart:145:22: Context: Found this candidate, but the arguments don't match.
  static ButtonStyle styleFrom({
                     ^^^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/ready.dart:35:46: Error: Member not found: 'Scrollable.maybeOf'.
    ScrollableState? scrollable = Scrollable.maybeOf(context);
                                             ^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/ready.dart:45:31: Error: Member not found: 'Scrollable.maybeOf'.
      scrollable = Scrollable.maybeOf(context);
                              ^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/ready.dart:57:70: Error: A value of type 'RenderAbstractViewport?' can't be assigned to a variable of type 'RenderAbstractViewport' because 'RenderAbstractViewport?' is nullable and 'RenderAbstractViewport' isn't.
 - 'RenderAbstractViewport' is from 'package:flutter/src/rendering/viewport.dart' ('/Users/sakura/fvm/versions/3.0.0/packages/flutter/lib/src/rendering/viewport.dart').
      final RenderAbstractViewport viewport = RenderAbstractViewport.of(object);
                                                                     ^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/data_table/data_table.dart:227:22: Error: The method 'SubmenuButton' isn't defined for the class '_DataTableState<T, Args, TController>'.
 - '_DataTableState' is from 'package:ready/src/responsive_data_table/responsive_data_table.dart' ('/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/responsive_data_table.dart').
Try correcting the name to the name of an existing method, or defining a method named 'SubmenuButton'.
        rActions.add(SubmenuButton(
                     ^^^^^^^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/data_table/data_table.dart:235:26: Error: The method 'MenuBar' isn't defined for the class '_DataTableState<T, Args, TController>'.
 - '_DataTableState' is from 'package:ready/src/responsive_data_table/responsive_data_table.dart' ('/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/responsive_data_table.dart').
Try correcting the name to the name of an existing method, or defining a method named 'MenuBar'.
      cells.add(DataCell(MenuBar(
                         ^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/data_table/data_table.dart:236:16: Error: The method 'MenuStyle' isn't defined for the class '_DataTableState<T, Args, TController>'.
 - '_DataTableState' is from 'package:ready/src/responsive_data_table/responsive_data_table.dart' ('/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/responsive_data_table.dart').
Try correcting the name to the name of an existing method, or defining a method named 'MenuStyle'.
        style: MenuStyle(
               ^^^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/filters_button.dart:80:19: Error: No named parameter with the name 'foregroundColor'.
                  foregroundColor: Theme.of(context).colorScheme.error),
                  ^^^^^^^^^^^^^^^
/Users/sakura/fvm/versions/3.0.0/packages/flutter/lib/src/material/text_button.dart:145:22: Context: Found this candidate, but the arguments don't match.
  static ButtonStyle styleFrom({
                     ^^^^^^^^^
/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/loading_button.dart:56:14: Error: The method 'MenuItemButton' isn't defined for the class '_LoadingButtonState'.
 - '_LoadingButtonState' is from 'package:ready/src/responsive_data_table/responsive_data_table.dart' ('/Users/sakura/.pub-cache/hosted/pub.dartlang.org/ready-1.7.7/lib/src/responsive_data_table/responsive_data_table.dart').
Try correcting the name to the name of an existing method, or defining a method named 'MenuItemButton'.
      return MenuItemButton(
             ^^^^^^^^^^^^^^
Failed to compile application.
mu-dawood commented 1 year ago

Upgrade flutter its now 3.7.12

vanvixi commented 1 year ago

Thanks.