Skip to content

Commit b7dc2dd

Browse files
committed
Resolve Dart UI Conflicts
*Remove usages of Dart UI and use widgets library instead.
1 parent 98c743e commit b7dc2dd

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

example

lib/responsive_wrapper.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import 'dart:ui';
2-
3-
import 'package:flutter/foundation.dart';
4-
import 'package:flutter/material.dart';
1+
import 'package:flutter/widgets.dart';
52

63
import 'utils/responsive_utils.dart';
74

@@ -352,7 +349,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
352349
Widget build(BuildContext context) {
353350
return (screenWidth ==
354351
0) // Initialization check. Window measurements not available until postFrameCallback.
355-
? Container(color: Colors.white)
352+
? Container(color: Color(0x00FFFFFF))
356353
: InheritedResponsiveWrapper(
357354
data: ResponsiveWrapperData.fromResponsiveWrapper(this),
358355
child: Stack(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ issue_tracker: https://github.com/Codelessly/ResponsiveFramework/issues
77
documentation: https://github.com/Codelessly/ResponsiveFramework
88

99
environment:
10-
sdk: ">=2.4.0 <3.0.0"
10+
sdk: ">=2.7.0 <3.0.0"
1111

1212
dependencies:
1313
flutter:

0 commit comments

Comments
 (0)