mirror of
https://github.com/flutter/samples.git
synced 2026-07-10 11:01:31 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -31,11 +31,13 @@ void setupWindow() {
|
||||
setWindowMinSize(const Size(windowWidth, windowHeight));
|
||||
setWindowMaxSize(const Size(windowWidth, windowHeight));
|
||||
getCurrentScreen().then((screen) {
|
||||
setWindowFrame(Rect.fromCenter(
|
||||
center: screen!.frame.center,
|
||||
width: windowWidth,
|
||||
height: windowHeight,
|
||||
));
|
||||
setWindowFrame(
|
||||
Rect.fromCenter(
|
||||
center: screen!.frame.center,
|
||||
width: windowWidth,
|
||||
height: windowHeight,
|
||||
),
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -44,18 +46,12 @@ GoRouter router() {
|
||||
return GoRouter(
|
||||
initialLocation: '/login',
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/login',
|
||||
builder: (context, state) => const MyLogin(),
|
||||
),
|
||||
GoRoute(path: '/login', builder: (context, state) => const MyLogin()),
|
||||
GoRoute(
|
||||
path: '/catalog',
|
||||
builder: (context, state) => const MyCatalog(),
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: 'cart',
|
||||
builder: (context, state) => const MyCart(),
|
||||
),
|
||||
GoRoute(path: 'cart', builder: (context, state) => const MyCart()),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user