Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1608

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This repository holds the source code for the Realm SDK for Flutter™ and Dart
```dart
import 'package:realm/realm.dart'; // import realm package

part 'app.g.dart'; // declare a part file.
part 'app.realm.dart'; // declare a part file.

@RealmModel() // define a data model class named `_Car`.
class _Car {
Expand Down Expand Up @@ -132,12 +132,12 @@ Realm Flutter package is published to [realm](https://pub.dev/packages/realm).
import 'package:realm/realm.dart';
```

* Declare a part file `catalog.g.dart` in the begining of the `catalog.dart` dart file after all imports.
* Declare a part file `catalog.realm.dart` in the begining of the `catalog.dart` dart file after all imports.

```dart
import 'dart:io';

part 'catalog.g.dart';
part 'catalog.realm.dart';
```

* Create a data model class.
Expand All @@ -163,7 +163,7 @@ Realm Flutter package is published to [realm](https://pub.dev/packages/realm).
```
dart run realm generate
```
A new file `catalog.g.dart` will be created next to the `catalog.dart`.
A new file `catalog.realm.dart` will be created next to the `catalog.dart`.

_*The generated file should be committed to source control_

Expand Down Expand Up @@ -221,7 +221,7 @@ Realm Flutter package is published to [realm](https://pub.dev/packages/realm).
```dart
import 'package:realm/realm.dart';

part 'catalog.g.dart';
part 'catalog.realm.dart';

@RealmModel()
class _Item {
Expand Down Expand Up @@ -315,7 +315,7 @@ Realm Dart package is published to [realm_dart](https://pub.dev/packages/realm_d
```
dart run realm_dart generate
```
A new file `catalog.g.dart` will be created next to the `catalog.dart`.
A new file `catalog.realm.dart` will be created next to the `catalog.dart`.

_*The generated file should be committed to source control_

Expand Down
Loading