텍스트 스타일 편집기
Flutter용 텍스트 스타일 편집기 위젯
- 스타
- 28
- 포크
- 8
- 최근 푸시(UTC)
- 2021. 5. 14.
- 프로젝트 상태
- 활성
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
TextStyleEditor
Text style editor widget for flutter
Show some ❤️ and star the repo to support the project
Features
- Edit
TextStyle - Change
TextAlign - Taggle
Caps lock
Screenshot

Installation
Add text_style_editor: ^1.0.0 to your pubspec.yaml dependencies. And import it:
import 'package:text_style_editor/text_style_editor.dart';
How to use
Simply create a TextStyleEditor widget, and pass the required params:
Params
- fonts (
List<String>): List of the font families that you want to use in the Editor.required
- textStyle (
TextStyle): The initial text style that you want to edit.required
- textAlign (
TextAlign): The initial text align that you want to change.required
- paletteColors (
List<Color>): List of the colors that you want to use in the Editor's palette.optional
- onTextAlignEdited (
Function(TextStyle)): Callback will be called every timetextStylehas changed.optional
- onTextStyleEdited (
Function(TextAlign)): Callback will be called every timetextAlignhas changed.optional
- onCpasLockTaggle (
Function(bool)): Callback will be called every time caps lock has changed to off or on.optional
- onToolbarActionChanged (
Function(EditorToolbarAction)): Callback will be called every time editor's tool has changed.optional
Example
TextStyleEditor(
fonts: fonts,
textStyle: textStyle,
textAlign: textAlign,
paletteColors: paletteColors,
onTextAlignEdited: (align) {
setState(() {
textAlign = align;
});
},
onTextStyleEdited: (style) {
setState(() {
textStyle = textStyle.merge(style);
});
},
onCpasLockTaggle: (caps) {
// Uppercase or lowercase letters
},
)
To see complete example: examples
MIT License
Copyright (c) 2020 Mehdi Zarepour
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
언어DartSwiftKotlinObjective-C
분류
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
프로젝트에 맞는 저장소를 선택하려면?
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
- 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
- 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
- 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.
출처 및 관리
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
