@@ -1835,21 +1835,12 @@ void main() {
1835
1835
return MaterialApp (
1836
1836
home: Builder (
1837
1837
builder: (BuildContext context) {
1838
- final ThemeData themeData = Theme .of (context);
1839
- return Theme (
1840
- data: themeData.copyWith (
1841
- appBarTheme: themeData.appBarTheme.copyWith (
1842
- // ignore: deprecated_member_use_from_same_package
1843
- shouldCapTextScaleForTitle: true ,
1844
- ),
1845
- ),
1846
- child: MediaQuery (
1847
- data: MediaQuery .of (context).copyWith (textScaleFactor: textScaleFactor),
1848
- child: Scaffold (
1849
- appBar: AppBar (
1850
- centerTitle: false ,
1851
- title: const Text ('Jumbo' , style: TextStyle (fontSize: 18 )),
1852
- ),
1838
+ return MediaQuery (
1839
+ data: MediaQuery .of (context).copyWith (textScaleFactor: textScaleFactor),
1840
+ child: Scaffold (
1841
+ appBar: AppBar (
1842
+ centerTitle: false ,
1843
+ title: const Text ('Jumbo' , style: TextStyle (fontSize: 18 )),
1853
1844
),
1854
1845
),
1855
1846
);
@@ -1884,18 +1875,18 @@ void main() {
1884
1875
builder: (BuildContext context) {
1885
1876
return Directionality (
1886
1877
textDirection: textDirection,
1887
- child: MediaQuery (
1888
- data : MediaQuery . of ( context). copyWith (textScaleFactor : textScaleFactor),
1889
- child : Builder (
1890
- builder : ( BuildContext context) {
1891
- return Scaffold (
1892
- appBar : AppBar (
1893
- centerTitle : centerTitle ,
1894
- title : const Text ('Jumbo' ),
1878
+ child: Builder (
1879
+ builder : ( BuildContext context) {
1880
+ return Scaffold (
1881
+ appBar : AppBar (
1882
+ centerTitle : centerTitle,
1883
+ title : MediaQuery (
1884
+ data : MediaQuery . of (context). copyWith (textScaleFactor : textScaleFactor) ,
1885
+ child : const Text ('Jumbo' ),
1895
1886
),
1896
- );
1897
- },
1898
- ) ,
1887
+ ),
1888
+ );
1889
+ } ,
1899
1890
),
1900
1891
);
1901
1892
},
0 commit comments