Skip to content

Commit 01b45c5

Browse files
content [nfc]: Alias package:intl import as intl
This later avoids a collision for the `TextDirection` type, which is also defined in `dart:ui`.
1 parent 3a315d6 commit 01b45c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/content.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
77
import 'package:flutter/rendering.dart';
88
import 'package:flutter/services.dart';
99
import 'package:html/dom.dart' as dom;
10-
import 'package:intl/intl.dart';
10+
import 'package:intl/intl.dart' as intl;
1111

1212
import '../api/core.dart';
1313
import '../api/model/model.dart';
@@ -1310,7 +1310,7 @@ class GlobalTime extends StatelessWidget {
13101310
final GlobalTimeNode node;
13111311
final TextStyle ambientTextStyle;
13121312

1313-
static final _dateFormat = DateFormat('EEE, MMM d, y, h:mm a'); // TODO(i18n): localize date
1313+
static final _dateFormat = intl.DateFormat('EEE, MMM d, y, h:mm a'); // TODO(i18n): localize date
13141314

13151315
@override
13161316
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)