forked from memspace/zefyr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kekland/indentation
Indentation
- Loading branch information
Showing
11 changed files
with
174 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
android.enableR8=true |
11 changes: 6 additions & 5 deletions
11
packages/zefyr/example/ios/Flutter/flutter_export_environment.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/sh | ||
# This is a generated file; do not edit or check into version control. | ||
export "FLUTTER_ROOT=/Users/mountain/Documents/development/flutter" | ||
export "FLUTTER_APPLICATION_PATH=/Users/mountain/Documents/code/zefyr/packages/zefyr/example" | ||
export "FLUTTER_TARGET=lib/main.dart" | ||
export "FLUTTER_ROOT=C:\Sdk\flutter" | ||
export "FLUTTER_APPLICATION_PATH=D:\Projects\zefyr\packages\zefyr\example" | ||
export "FLUTTER_TARGET=lib\main.dart" | ||
export "FLUTTER_BUILD_DIR=build" | ||
export "SYMROOT=${SOURCE_ROOT}/../build/ios" | ||
export "FLUTTER_FRAMEWORK_DIR=/Users/mountain/Documents/development/flutter/bin/cache/artifacts/engine/ios" | ||
export "SYMROOT=${SOURCE_ROOT}/../build\ios" | ||
export "OTHER_LDFLAGS=$(inherited) -framework Flutter" | ||
export "FLUTTER_FRAMEWORK_DIR=C:\Sdk\flutter\bin\cache\artifacts\engine\ios" | ||
export "FLUTTER_BUILD_NAME=1.0.0" | ||
export "FLUTTER_BUILD_NUMBER=1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:zefyr/zefyr.dart'; | ||
|
||
class ZefyrIndent extends StatelessWidget { | ||
final LineNode node; | ||
final Widget child; | ||
|
||
const ZefyrIndent({Key key, this.node, this.child}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final indentLevel = | ||
node.style.get<int>(NotusAttribute.indentation)?.value ?? 0; | ||
|
||
return Padding( | ||
padding: EdgeInsets.only(left: indentLevel * 16.0), | ||
child: child, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.