Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CodingWithTashi/flutter_text_viewer
Simple flutter package to load and search string.
https://github.com/CodingWithTashi/flutter_text_viewer
dart flutter flutter-app flutter-package flutter-plugin flutter-text-viewer
Last synced: about 2 months ago
JSON representation
Simple flutter package to load and search string.
- Host: GitHub
- URL: https://github.com/CodingWithTashi/flutter_text_viewer
- Owner: CodingWithTashi
- License: mit
- Created: 2022-05-21T10:07:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T06:49:40.000Z (almost 2 years ago)
- Last Synced: 2024-07-09T00:09:28.915Z (2 months ago)
- Topics: dart, flutter, flutter-app, flutter-package, flutter-plugin, flutter-text-viewer
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_text_viewer
- Size: 235 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_text_viewer
flutter_text_viewer is a simple text viewer package to load and search text from assets,file.
## Demo
![Image](https://github.com/CodingWithTashi/flutter_text_viewer/blob/master/example/demo/search.png?raw=true)## Features
* Load text from assets/file or string
* View text
* Search text## Getting started
```dart
flutter_text_viewer: ^0.0.4```
Import the library:
```dart
import 'package:flutter_text_viewer/flutter_text_viewer.dart';```
## Usage```dart
TextViewerPage(
textViewer: TextViewer.asset(
'assets/test.txt',
highLightColor: Colors.yellow,
focusColor: Colors.orange,
ignoreCase: true,
),
showSearchAppBar: true,
)
```
## Todo
* Pagination for large text file
* AppBar enhancement## Note
Feel free to fork and send pull requestIf you have any questions, feedback or ideas, feel free to [create an
issue](https://github.com/CodingWithTashi/flutter_text_viewer/issues/new). If you enjoy this
project, I'd appreciate your [🌟 on GitHub](https://github.com/CodingWithTashi/flutter_text_viewer/).