<commit_before># fnx_gallery

In Dart app you have to prepare images paths and optionally captions:

```dart
List<Image> images = [];

List<String> names = [
  "butterfly.jpg",
  "tunnel.jpg",
  "coast.jpg",
  "flower.jpg",
  "meadow.jpg",
];

ExampleComponent() {
  for (var name in names) {
    name = "imgs/$name";
    Image i = new Image(name, thumbSrc: name+"?thumg=1", htmlCaptionProvider: () {
      return new Future.delayed(new Duration(milliseconds: 600)).then((_)=>"$name");
    });
    images.add(i);
  }
}
```

In template use it like this:

```html
<fnx-gallery
    [images]="images"
    [withCaptions]="true"
    [withThumbnails]="true"></fnx-gallery>
    ...
```

See [examples](http://demo.fnx.io/fnx_gallery-examples/).

## Navigation

Your user can navigate through your gallery by simply pressing the left/right buttons or on mobile also by swapping to left or right.

## fnx-gallery element

**fnx_gallery** package contains `<fnx-gallery>` element. It's a
simple `position: fixed;` element which you can use as gallery.

Specify dependency in pubspec.yaml:
<commit_msg>Preklep<commit_after># fnx_gallery

In Dart app you have to prepare images paths and optionally captions:

```dart
List<Image> images = [];

List<String> names = [
  "butterfly.jpg",
  "tunnel.jpg",
  "coast.jpg",
  "flower.jpg",
  "meadow.jpg",
];

ExampleComponent() {
  for (var name in names) {
    name = "imgs/$name";
    Image i = new Image(name, thumbSrc: name+"?thumg=1", htmlCaptionProvider: () {
      return new Future.delayed(new Duration(milliseconds: 600)).then((_)=>"$name");
    });
    images.add(i);
  }
}
```

In template use it like this:

```html
<fnx-gallery
    [images]="images"
    [withCaptions]="true"
    [withThumbnails]="true"></fnx-gallery>
    ...
```

See [examples](http://demo.fnx.io/fnx_gallery-examples/).

## Navigation

Your user can navigate through your gallery by simply pressing the left/right buttons or on mobile also by swipping to left or right.

## fnx-gallery element

**fnx_gallery** package contains `<fnx-gallery>` element. It's a
simple `position: fixed;` element which you can use as gallery.

Specify dependency in pubspec.yaml:

{'fraction_non_alphanumeric': 0.15165441176470587, 'fraction_numerical': 0.003676470588235294, 'mean_word_length': 3.9816933638443937, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7599187', 'n_tokens_mistral': 779, 'n_tokens_neox': 731, 'n_words': 210}