responsive_design 0.0.18
responsive_design: ^0.0.18 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: Padding(
padding: const EdgeInsets.all(8.0),
child: Scaffold(
appBar: ResponsiveAppBar(
title: Text('Alex Astudillo'),
),
),
),
);
}
}