Fix analysis on Dart dev
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 402f3d5..238e6d6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 1.0.4
+
+- Migrate away from `UnmodifiableUint8ListView` which is deprecated in Dart
+  3.4.
+
 ## 1.0.3
 
 - Fix the reader throwing a `FormatException` (instead of a `TarException`)
diff --git a/lib/src/constants.dart b/lib/src/constants.dart
index 4657d45..e1dfac6 100644
--- a/lib/src/constants.dart
+++ b/lib/src/constants.dart
@@ -187,4 +187,4 @@
 const prefixSize = 155;
 
 /// A full TAR block of zeros.
-final zeroBlock = Uint8List(blockSize);
+final zeroBlock = Uint8List(blockSize).asUnmodifiableView();
diff --git a/lib/src/writer.dart b/lib/src/writer.dart
index 4856700..4fb2f9d 100644
--- a/lib/src/writer.dart
+++ b/lib/src/writer.dart
@@ -302,8 +302,8 @@
 
     // End the tar archive by writing two zero blocks.
     _output
-      ..add(UnmodifiableUint8ListView(zeroBlock))
-      ..add(UnmodifiableUint8ListView(zeroBlock));
+      ..add(zeroBlock)
+      ..add(zeroBlock);
     _output.close();
 
     _closed = true;
diff --git a/pubspec.yaml b/pubspec.yaml
index 63b46e2..89997e0 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
 name: tar
 description: Memory-efficient, streaming implementation of the tar file format
-version: 1.0.3
+version: 1.0.4
 repository: https://github.com/simolus3/tar/
 
 environment: