skip to Main Content

Flutter – build_runner showing error The getter 'macroKeyword' isn't defined for the class 'ClassDeclaration'

When I am running build_runner command it is showing me following error: Failed to build build_runner:build_runner: ../../.pub-cache/hosted/pub.dev/dart_style-2.3.5/lib/src/front_end/ast_node_visitor.dart:251:16: Error: The getter 'macroKeyword' isn't defined for the class 'ClassDeclaration'. - 'ClassDeclaration' is from 'package:analyzer/src/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dev/analyzer-6.2.0/lib/src/dart/ast/ast.dart'). Try correcting the name to the name…

VIEW QUESTION

Flutter – Riverpod won't refresh when state changes

import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:google_nav_bar/google_nav_bar.dart'; final tabProvider = StateProvider<int>((ref) => 0); class UserPage extends ConsumerWidget { const UserPage({super.key}); @override Widget build(BuildContext context, WidgetRef ref) { // Watch the currentIndexProvider and get its value var currentIndex = ref.watch(tabProvider.notifier).state; print("render"); final…

VIEW QUESTION
Back To Top
Search