Skip to content

Commit 51e4289

Browse files
authored
Merge pull request #576 from tusharhow/patch-5
Build apk and responsiveness check added
2 parents 42db758 + f540a83 commit 51e4289

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

data/draft/flutter.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ flutter channel
5959
```bash
6060
flutter channel dev/master/stable/beta
6161
```
62+
রিয়েল ডিভাইসে টেস্টের জন্য .apk জেনারেট করতে
63+
```bash
64+
flutter build apk
65+
```
6266
ফ্লাটার লগস
6367
```bash
6468
flutter logs -d <device-id>
@@ -81,6 +85,28 @@ flutter logs -d <device-id>
8185
```bash
8286
flutter --help --verbose
8387
```
88+
বিভিন্ন ডিভাইসের জন্য রেস্পন্সিভনেস চেক করতে
89+
```bash
90+
import 'package:device_preview/device_preview.dart';
91+
92+
void main() => runApp(
93+
DevicePreview(
94+
enabled: !kReleaseMode,
95+
builder: (context) => MyApp(), // Wrap your app
96+
),
97+
);
98+
99+
class MyApp extends StatelessWidget {
100+
@override
101+
Widget build(BuildContext context) {
102+
return MaterialApp(
103+
locale: DevicePreview.locale(context), // Add the locale here
104+
builder: DevicePreview.appBuilder, // Add the builder here
105+
home: HomePage(),
106+
);
107+
}
108+
}
109+
```
84110
```
85111
## Hello world
86112

0 commit comments

Comments
 (0)