v1.0.0flutter_web_frame
Flutter Web/Desktop/PWA에서 콘텐츠 크기 제한하기, 반응형을 지원하지 않는 앱을 콘텐츠 중심으로 만들기
73좋아요 3.5천30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
Flutter Web/Desktop/PWA에서 콘텐츠 크기를 제한하고 반응형을 지원하지 않는 앱을 콘텐츠 중심으로 만드세요. 데모: https://flutter-web-frame.vercel.app
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Make the frame max width / size when on large devices such as Web or Desktop.
This is very suitable to be used to limit the size of content, if your application is not yet available a responsive version if it is run on multiple devices / platforms.
Follow the instructions to install it here
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_web_frame/flutter_web_frame.dart';
void main() {
runApp(MyAp());
}
class MyAp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FlutterWebFrame(
builder: (context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Flutter Web Frame'),
),
body: Center(
child: Text('Body Text'),
),
),
);
},
maximumSize: Size(475.0, 812.0), // Maximum size
enabled: kIsWeb, // default is enable, when disable content is full size
backgroundColor: Colors.grey, // Background color/white space
);
}
}
의존성 목록 3 개
{"sdk":"flutter"}{"sdk":"flutter"}^1.11.1사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗