responsive_design 0.0.19
responsive_design: ^0.0.19 copied to clipboard
Create responsive applications using different widgets that adapt to different screen densities.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:responsive_design/responsive_design.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
appBarTheme: const AppBarTheme(
backgroundColor: Colors.blueGrey,
),
),
home: const ResponsiveWidget(
desktop: Scaffold(),
phone: Scaffold(),
tablet: Scaffold(),
watch: Scaffold(),
),
);
}
}