Closed AgrMayank closed 3 years ago
To resolve conflicts between imports, use the hide
and show
keywords:
import 'package:flutter/material.dart' hide Element;
import 'package:universal_html/html.dart';
To resolve conflicts between imports, use the
hide
andshow
keywords:import 'package:flutter/material.dart' hide Element; import 'package:universal_html/html.dart';
Thanks! I'll test that out.
When using the sample code,
Element.tag("h1")
is giving errors due to the conflicts with thematerial.dart
class if present in the dart file. The ERROR - The method 'tag' isn't defined for the type 'Element'.