Skip to content

Commit

Permalink
Merge pull request #26 from Nimblesite/new_sample
Browse files Browse the repository at this point in the history
Overhaul The Sample With Better Browsing Etc
  • Loading branch information
MelbourneDeveloper authored Sep 22, 2024
2 parents e28caa7 + 3a0dc80 commit b184189
Show file tree
Hide file tree
Showing 123 changed files with 1,557 additions and 305 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ charts_common/coverage/
charts_common/.DS_Store

charts_common/test/chart/.DS_Store

.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DomainA11yExploreBarChart extends StatelessWidget {
const DomainA11yExploreBarChart(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.BarChart] with sample data and no transition.
Expand Down
2 changes: 1 addition & 1 deletion charts_flutter/example/lib/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AppConfig {

/// The default configuration of the app.
AppConfig get defaultConfig => AppConfig(
appName: 'Charts Gallery',
appName: 'nimble_charts Gallery',
appLink: '',
theme: ThemeData(
brightness: Brightness.light,
Expand Down
6 changes: 4 additions & 2 deletions charts_flutter/example/lib/axes/bar_secondary_axis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BarChartWithSecondaryAxis extends StatelessWidget {
const BarChartWithSecondaryAxis(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory BarChartWithSecondaryAxis.withSampleData() =>
Expand All @@ -53,7 +53,9 @@ class BarChartWithSecondaryAxis extends StatelessWidget {
// It is used for creating random series data to demonstrate animation in
// the example app only.
factory BarChartWithSecondaryAxis.withRandomData() =>
BarChartWithSecondaryAxis(_createRandomData());
BarChartWithSecondaryAxis(
_createRandomData(),
);
static const secondaryMeasureAxisId = 'secondaryMeasureAxisId';
final List<charts.Series<dynamic, String>> seriesList;
final bool animate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class BarChartWithSecondaryAxisOnly extends StatelessWidget {
const BarChartWithSecondaryAxisOnly(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory BarChartWithSecondaryAxisOnly.withSampleData() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CustomAxisTickFormatters extends StatelessWidget {
const CustomAxisTickFormatters(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.TimeSeriesChart] with sample data and no transition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CustomFontSizeAndColor extends StatelessWidget {
const CustomFontSizeAndColor(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory CustomFontSizeAndColor.withSampleData() => CustomFontSizeAndColor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CustomMeasureTickCount extends StatelessWidget {
const CustomMeasureTickCount(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.TimeSeriesChart] with sample data and no transition.
Expand Down
2 changes: 1 addition & 1 deletion charts_flutter/example/lib/axes/flipped_vertical_axis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import 'package:nimble_charts/flutter.dart' as charts;
/// Note: primary and secondary may flip left and right positioning when
/// RTL.flipAxisLocations is set.
class FlippedVerticalAxis extends StatelessWidget {
const FlippedVerticalAxis(this.seriesList, {super.key, this.animate = false});
const FlippedVerticalAxis(this.seriesList, {super.key, this.animate = true});

factory FlippedVerticalAxis.withSampleData() => FlippedVerticalAxis(
_createSampleData(),
Expand Down
2 changes: 1 addition & 1 deletion charts_flutter/example/lib/axes/gridline_dash_pattern.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import 'package:flutter/material.dart';
import 'package:nimble_charts/flutter.dart' as charts;

class GridlineDashPattern extends StatelessWidget {
const GridlineDashPattern(this.seriesList, {super.key, this.animate = false});
const GridlineDashPattern(this.seriesList, {super.key, this.animate = true});

/// Creates a [charts.TimeSeriesChart] with sample data and no transition.
factory GridlineDashPattern.withSampleData() => GridlineDashPattern(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HiddenTicksAndLabelsAxis extends StatelessWidget {
const HiddenTicksAndLabelsAxis(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory HiddenTicksAndLabelsAxis.withSampleData() => HiddenTicksAndLabelsAxis(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HorizontalBarChartWithSecondaryAxis extends StatelessWidget {
const HorizontalBarChartWithSecondaryAxis(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory HorizontalBarChartWithSecondaryAxis.withSampleData() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IntegerOnlyMeasureAxis extends StatelessWidget {
const IntegerOnlyMeasureAxis(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.TimeSeriesChart] with sample data and no transition.
Expand Down
2 changes: 1 addition & 1 deletion charts_flutter/example/lib/axes/line_disjoint_axis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DisjointMeasureAxisLineChart extends StatelessWidget {
const DisjointMeasureAxisLineChart(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.LineChart] with sample data and no transition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MeasureAxisLabelAlignment extends StatelessWidget {
const MeasureAxisLabelAlignment(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory MeasureAxisLabelAlignment.withSampleData() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class NonzeroBoundMeasureAxis extends StatelessWidget {
const NonzeroBoundMeasureAxis(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.TimeSeriesChart] with sample data and no transition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class NumericInitialViewport extends StatelessWidget {
const NumericInitialViewport(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.LineChart] with sample data and no transition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class OrdinalInitialViewport extends StatelessWidget {
const OrdinalInitialViewport(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

/// Creates a [charts.BarChart] with sample data and no transition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import 'package:nimble_charts/flutter.dart' as charts;
/// There are many axis styling options in the SmallTickRenderer allowing you
/// to customize the font, tick lengths, and offsets.
class ShortTickLengthAxis extends StatelessWidget {
const ShortTickLengthAxis(this.seriesList, {super.key, this.animate = false});
const ShortTickLengthAxis(this.seriesList, {super.key, this.animate = true});

factory ShortTickLengthAxis.withSampleData() => ShortTickLengthAxis(
_createSampleData(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class StaticallyProvidedTicks extends StatelessWidget {
const StaticallyProvidedTicks(
this.seriesList, {
super.key,
this.animate = false,
this.animate = true,
});

factory StaticallyProvidedTicks.withSampleData() => StaticallyProvidedTicks(
Expand Down
Loading

0 comments on commit b184189

Please sign in to comment.