Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 632 Bytes

File metadata and controls

44 lines (32 loc) · 632 Bytes

Tests

Re-generating demo project

Create a new Flutter project:

$ flutter create demo
$ cd demo

Edit pubspec.yaml:

 dev_dependencies:
   flutter_test:
     sdk: flutter

+  intl_translation: any
+  build_runner: any

Install dependencies:

$ flutter packages get

Create file lib/intl/intl.dart:

import 'dart:async';

import 'messages_all.dart';
import 'package:intl/intl.dart';

class DemoIntl {
  String get helloWorld => Intl.message(
        'Hello, World!',
        name: 'helloWorld',
        desc: 'Text displayed in the center of the login screen',
      );
}