Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
R. C. Howell committed Mar 22, 2018
0 parents commit cc0e069
Show file tree
Hide file tree
Showing 12 changed files with 592 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
.atom/
.idea
.packages
.pub/
packages
pubspec.lock
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## [0.0.1] - TODO: Add release date.

* TODO: Describe initial release.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: Add your license here.
84 changes: 84 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# flutter_plot
R. C. Howell - 2018

A pretty plotting package for Flutter apps. Sizing and autopadding isn't great right now, but tinkering with padding and fontSize will allow for you to align things well.

## Example 1

![Screenshot](https://i.imgur.com/17QwWzg.png)

This example is more complicated than typical because it's showing off the styling capability.

```
final List<Point> data = [
const Point(21.0, 19.0),
const Point(3.0, 7.0),
const Point(8.0, 9.0),
const Point(11.0, 14.0),
const Point(18.0, 17.0),
const Point(7.0, 8.0),
const Point(-4.0, -4.0),
const Point(6.0, 12.0),
];
new Card(
child: new Column(
children: <Widget>[
new Container(
padding: const EdgeInsets.only(top: 12.0),
child: new Text('Super Neat Plot'),
),
new Container(
child: new Plot(
height: 200.0,
data: widget.data,
gridSize: new Offset(2.0, 2.0),
style: new PlotStyle(
pointRadius: 3.0,
outlineRadius: 1.0,
primary: Colors.white,
secondary: Colors.orange,
textStyle: new TextStyle(
fontSize: 8.0,
color: Colors.blueGrey,
),
axis: Colors.blueGrey[600],
gridline: Colors.blueGrey[100],
),
padding: const EdgeInsets.fromLTRB(40.0, 12.0, 12.0, 40.0),
xTitle: 'My X Title',
yTitle: 'My Y Title',
),
),
],
),
),
```

## Example 2

![Screenshot 2](https://i.imgur.com/yPUG61p.png)

```
// Using the same data as before
Plot simplePlot = new Plot(
height: 200.0,
data: widget.data,
gridSize: new Offset(2.0, 2.0),
style: new PlotStyle(
primary: Colors.black,
textStyle: new TextStyle(
fontSize: 8.0,
color: Colors.blueGrey,
),
axis: Colors.blueGrey[600],
),
padding: const EdgeInsets.fromLTRB(40.0, 12.0, 12.0, 40.0),
);
```

## How to Use
1. Add as a dependency
2. `import 'package:flutter_plot/plot.dart';`
3. See examples! There's not much to this package yet!
95 changes: 95 additions & 0 deletions flutter_01.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
Flutter crash report; please file at https://github.com/flutter/flutter/issues.

## command

flutter upgrade

## exception

ArgumentError: Invalid argument(s): Cannot find executable for /Users/rch/Projects/flutter/bin/cache/artifacts/engine/darwin-x64/dart-sdk/bin/dart.

```
#0 _getExecutable (package:process/src/interface/local_process_manager.dart:113)
#1 LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:84)
#2 Cache.engineDartVersion (package:flutter_tools/src/cache.dart:139)
#3 FlutterVersion.engineDartVersion (package:flutter_tools/src/version.dart:86)
#4 _FlutterValidator.validate (package:flutter_tools/src/doctor.dart:215)
<asynchronous suspension>
#5 Doctor.diagnose (package:flutter_tools/src/doctor.dart:106)
<asynchronous suspension>
#6 UpgradeCommand.runCommand (package:flutter_tools/src/commands/upgrade.dart:80)
<asynchronous suspension>
#7 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:279)
<asynchronous suspension>
#8 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:219)
<asynchronous suspension>
#9 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#10 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:284)
<asynchronous suspension>
#11 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#12 new Future.sync (dart:async/future.dart:222)
#13 CommandRunner.run (package:args/command_runner.dart:109)
#14 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#15 run.<anonymous closure> (package:flutter_tools/runner.dart:89)
<asynchronous suspension>
#16 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#17 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#18 _rootRun (dart:async/zone.dart:1126)
#19 _CustomZone.run (dart:async/zone.dart:1023)
#20 runZoned (dart:async/zone.dart:1501)
#21 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#22 run (package:flutter_tools/runner.dart:60)
<asynchronous suspension>
#23 main (package:flutter_tools/executable.dart:44)
<asynchronous suspension>
#24 main (file:///Users/rch/Projects/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#25 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:275)
#26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:163)
```

## flutter doctor

```
encountered exception: Invalid argument(s): Cannot find executable for /Users/rch/Projects/flutter/bin/cache/artifacts/engine/darwin-x64/dart-sdk/bin/dart.

#0 _getExecutable (package:process/src/interface/local_process_manager.dart:113)
#1 LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:84)
#2 Cache.engineDartVersion (package:flutter_tools/src/cache.dart:139)
#3 FlutterVersion.engineDartVersion (package:flutter_tools/src/version.dart:86)
#4 _FlutterValidator.validate (package:flutter_tools/src/doctor.dart:215)
<asynchronous suspension>
#5 Doctor.diagnose (package:flutter_tools/src/doctor.dart:106)
<asynchronous suspension>
#6 _doctorText.<anonymous closure> (package:flutter_tools/runner.dart:236)
#7 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#8 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#9 _rootRun (dart:async/zone.dart:1126)
#10 _CustomZone.run (dart:async/zone.dart:1023)
#11 runZoned (dart:async/zone.dart:1501)
#12 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#13 _doctorText (package:flutter_tools/runner.dart:236)
<asynchronous suspension>
#14 _createLocalCrashReport (package:flutter_tools/runner.dart:211)
<asynchronous suspension>
#15 _handleToolError (package:flutter_tools/runner.dart:166)
<asynchronous suspension>
#16 run.<anonymous closure> (package:flutter_tools/runner.dart:93)
<asynchronous suspension>
#17 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#18 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#19 _rootRun (dart:async/zone.dart:1126)
#20 _CustomZone.run (dart:async/zone.dart:1023)
#21 runZoned (dart:async/zone.dart:1501)
#22 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#23 run (package:flutter_tools/runner.dart:60)
<asynchronous suspension>
#24 main (package:flutter_tools/executable.dart:44)
<asynchronous suspension>
#25 main (file:///Users/rch/Projects/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#26 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:275)
#27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:163)
```
18 changes: 18 additions & 0 deletions flutter_plot.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/.idea" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart Packages" level="project" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Flutter Plugins" level="project" />
</component>
</module>
8 changes: 8 additions & 0 deletions ios/Flutter/Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/rch/Projects/flutter
FLUTTER_APPLICATION_PATH=/Users/rch/Projects/flutter_plot
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_MODE=debug
FLUTTER_BUILD_DIR=build
SYMROOT=${SOURCE_ROOT}/../build/ios
FLUTTER_FRAMEWORK_DIR=/Users/rch/Projects/flutter/bin/cache/artifacts/engine/ios
14 changes: 14 additions & 0 deletions ios/Runner/GeneratedPluginRegistrant.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Generated file. Do not edit.
//

#ifndef GeneratedPluginRegistrant_h
#define GeneratedPluginRegistrant_h

#import <Flutter/Flutter.h>

@interface GeneratedPluginRegistrant : NSObject
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry;
@end

#endif /* GeneratedPluginRegistrant_h */
12 changes: 12 additions & 0 deletions ios/Runner/GeneratedPluginRegistrant.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Generated file. Do not edit.
//

#import "GeneratedPluginRegistrant.h"

@implementation GeneratedPluginRegistrant

+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
}

@end
Loading

0 comments on commit cc0e069

Please sign in to comment.