jaspr_icons 1.1.1 copy "jaspr_icons: ^1.1.1" to clipboard
jaspr_icons: ^1.1.1 copied to clipboard

An easy way to use icons in your jaspr app.

example/lib/main.dart

// The entrypoint for the **server** environment.
//
// The [main] method will only be executed on the server during pre-rendering.
// To run code on the client, see [web/main.dart].

// Server-specific jaspr import.
import 'package:jaspr/server.dart';

// Imports the [App] component.
import 'app.dart';

// This file is generated automatically by Jaspr, do not remove or edit.
import 'jaspr_options.dart';

void main() {
  // Initializes the server environment with the generated default options.
  Jaspr.initializeApp(
    options: defaultJasprOptions,
  );

  // Starts the app.
  //
  // [Document] renders the root document structure (<html>, <head> and <body>)
  // with the provided parameters and components.
  runApp(Document(
    title: 'example',
    styles: [
      // Special import rule to include to another css file.
      css.import('https://fonts.googleapis.com/css?family=Roboto'),
      // Each style rule takes a valid css selector and a set of styles.
      // Styles are defined using type-safe css bindings and can be freely chained and nested.
      css('html, body').styles(
        width: 100.percent,
        minHeight: 100.vh,
        padding: Padding.zero,
        margin: Margin.zero,
        fontFamily: const FontFamily.list([FontFamily('Roboto'), FontFamilies.sansSerif]),
      ),
      css('h1').styles(
        margin: Margin.unset,
        fontSize: 4.rem,
      ),
    ],
    head: [
      // Links to the compiled client entrypoint.
      script(defer: true, src: 'main.dart.js'),
    ],
    body: App(),
  ));
}
6
likes
0
points
26
downloads

Publisher

verified publisherhani.day

Weekly Downloads

An easy way to use icons in your jaspr app.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

jaspr

More

Packages that depend on jaspr_icons