mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
876 B
27 lines
876 B
// Copyright 2021, the Flutter project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:url_strategy/url_strategy.dart';
|
|
|
|
import 'src/app.dart';
|
|
|
|
void main() {
|
|
// Use package:url_strategy until this pull request is released:
|
|
// https://github.com/flutter/flutter/pull/77103
|
|
|
|
// Use to setHashUrlStrategy() to use "/#/" in the address bar (default). Use
|
|
// setPathUrlStrategy() to use the path. You may need to configure your web
|
|
// server to redirect all paths to index.html.
|
|
//
|
|
// On mobile platforms, both functions are no-ops.
|
|
setHashUrlStrategy();
|
|
// setPathUrlStrategy();
|
|
|
|
runApp(const Bookstore());
|
|
}
|
|
|
|
const double windowWidth = 480;
|
|
const double windowHeight = 854;
|